mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 01:54:47 +00:00
Incremental search indexing (#6453)
* wip: initial kafka support
* wip: kafka search queue
* wip: kafka consumer
* wip: create/delete docs
* reindexing works
* reindex in more places
* also incrementally update server pings
* cleanup
* tombi
* fix ci
* update tombi
* prepare
* fix ci
* fix
* fix PLEASE
* 🙏
* add route to force reindex project
This commit is contained in:
@@ -101,7 +101,7 @@ impl DBModerationLock {
|
||||
moderator_id: DBUserId,
|
||||
pool: &PgPool,
|
||||
) -> Result<(), sqlx::Error> {
|
||||
sqlx::query(
|
||||
sqlx::query!(
|
||||
r#"
|
||||
INSERT INTO moderation_locks (project_id, moderator_id, locked_at)
|
||||
VALUES ($1, $2, NOW())
|
||||
@@ -109,9 +109,9 @@ impl DBModerationLock {
|
||||
moderator_id = EXCLUDED.moderator_id,
|
||||
locked_at = EXCLUDED.locked_at
|
||||
"#,
|
||||
project_id as DBProjectId,
|
||||
moderator_id as DBUserId,
|
||||
)
|
||||
.bind(project_id)
|
||||
.bind(moderator_id)
|
||||
.execute(pool)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user