mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
fix: migrate collaborative markup in activity (#6400)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
c8357246b1
commit
7dd63873e4
@ -175,6 +175,17 @@ export async function migrateMessagesSpace (
|
||||
}
|
||||
}
|
||||
|
||||
async function migrateActivityMarkup (client: MigrationClient): Promise<void> {
|
||||
await client.update(
|
||||
DOMAIN_ACTIVITY,
|
||||
{
|
||||
_class: activity.class.DocUpdateMessage,
|
||||
'attributeUpdates.attrClass': 'core:class:TypeCollaborativeMarkup'
|
||||
},
|
||||
{ 'attributeUpdates.attrClass': core.class.TypeMarkup }
|
||||
)
|
||||
}
|
||||
|
||||
export const activityOperation: MigrateOperation = {
|
||||
async migrate (client: MigrationClient): Promise<void> {
|
||||
await tryMigrate(client, activityId, [
|
||||
@ -206,6 +217,10 @@ export const activityOperation: MigrateOperation = {
|
||||
{ space: contact.space.Contacts }
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
state: 'migrate-activity-markup',
|
||||
func: migrateActivityMarkup
|
||||
}
|
||||
])
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user