Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2023-12-15 19:30:49 +04:00 committed by GitHub
parent fa939dd0de
commit d704f474cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ import tags, { TagCategory, TagElement, TagReference } from '@hcengineering/tags
import { MongoClient } from 'mongodb' import { MongoClient } from 'mongodb'
import chunter, { ChatMessage } from '@hcengineering/chunter' import chunter, { ChatMessage } from '@hcengineering/chunter'
export const DOMAIN_CHUNTER = 'chunter' as Domain export const DOMAIN_ACTIVITY = 'activity' as Domain
export async function cleanWorkspace ( export async function cleanWorkspace (
mongoUrl: string, mongoUrl: string,
@ -354,7 +354,7 @@ export async function fixCommentDoubleIdCreate (workspaceId: WorkspaceId, transa
doc._id = c.tx.objectId as Ref<ChatMessage> doc._id = c.tx.objectId as Ref<ChatMessage>
await connection.upload(DOMAIN_TX, [c]) await connection.upload(DOMAIN_TX, [c])
// Also we need to create snapsot // Also we need to create snapsot
await connection.upload(DOMAIN_CHUNTER, [doc]) await connection.upload(DOMAIN_ACTIVITY, [doc])
} }
} }
} }