mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 17:05:16 +03:00
Fix clean (#4206)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
fa939dd0de
commit
d704f474cf
@ -40,7 +40,7 @@ import tags, { TagCategory, TagElement, TagReference } from '@hcengineering/tags
|
||||
import { MongoClient } from 'mongodb'
|
||||
import chunter, { ChatMessage } from '@hcengineering/chunter'
|
||||
|
||||
export const DOMAIN_CHUNTER = 'chunter' as Domain
|
||||
export const DOMAIN_ACTIVITY = 'activity' as Domain
|
||||
|
||||
export async function cleanWorkspace (
|
||||
mongoUrl: string,
|
||||
@ -354,7 +354,7 @@ export async function fixCommentDoubleIdCreate (workspaceId: WorkspaceId, transa
|
||||
doc._id = c.tx.objectId as Ref<ChatMessage>
|
||||
await connection.upload(DOMAIN_TX, [c])
|
||||
// Also we need to create snapsot
|
||||
await connection.upload(DOMAIN_CHUNTER, [doc])
|
||||
await connection.upload(DOMAIN_ACTIVITY, [doc])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user