mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Fix recreate elastic (#6945)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
288c51aa0d
commit
f8f140cc12
@ -112,7 +112,7 @@ export async function recreateElastic (
|
||||
const db = getWorkspaceMongoDB(_client, workspaceId)
|
||||
await db
|
||||
.collection(DOMAIN_DOC_INDEX_STATE)
|
||||
.updateMany({ _class: core.class.DocIndexState }, { $set: { stages: {} } })
|
||||
.updateMany({ _class: core.class.DocIndexState }, { $set: { stages: {}, needIndex: true } })
|
||||
await connection.sendForceClose()
|
||||
} finally {
|
||||
client.close()
|
||||
|
Loading…
Reference in New Issue
Block a user