mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-29 17:14:37 +03:00
UBER-1179: fix comments saving (#4205)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
818a5c829a
commit
fa939dd0de
@ -178,7 +178,7 @@ export class TDirectMessageInput extends TClass implements DirectMessageInput {
|
||||
component!: AnyComponent
|
||||
}
|
||||
|
||||
@Model(chunter.class.ChatMessage, activity.class.ActivityMessage, DOMAIN_CHUNTER)
|
||||
@Model(chunter.class.ChatMessage, activity.class.ActivityMessage)
|
||||
export class TChatMessage extends TActivityMessage implements ChatMessage {
|
||||
@Prop(TypeMarkup(), chunter.string.Message)
|
||||
@Index(IndexKind.FullText)
|
||||
|
@ -21,7 +21,7 @@ import {
|
||||
tryMigrate
|
||||
} from '@hcengineering/model'
|
||||
import { chunterId } from '@hcengineering/chunter'
|
||||
import { DOMAIN_NOTIFICATION } from '@hcengineering/model-notification'
|
||||
import { DOMAIN_ACTIVITY } from '@hcengineering/model-activity'
|
||||
|
||||
import { DOMAIN_COMMENT } from './index'
|
||||
import chunter from './plugin'
|
||||
@ -90,7 +90,7 @@ async function createBacklink (tx: TxOperations): Promise<void> {
|
||||
|
||||
async function convertCommentsToChatMessages (client: MigrationClient): Promise<void> {
|
||||
await client.update(DOMAIN_COMMENT, { _class: chunter.class.Comment }, { _class: chunter.class.ChatMessage })
|
||||
await client.move(DOMAIN_COMMENT, { _class: chunter.class.ChatMessage }, DOMAIN_NOTIFICATION)
|
||||
await client.move(DOMAIN_COMMENT, { _class: chunter.class.ChatMessage }, DOMAIN_ACTIVITY)
|
||||
}
|
||||
|
||||
export const chunterOperation: MigrateOperation = {
|
||||
|
Loading…
Reference in New Issue
Block a user