mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-12 18:35:45 +00:00
Fix card migration (#8402)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
e9d8da460a
commit
21a7876ad1
@ -13,8 +13,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
|
|
||||||
import { DOMAIN_CARD } from '@hcengineering/card'
|
import { cardId, DOMAIN_CARD } from '@hcengineering/card'
|
||||||
import { chunterId } from '@hcengineering/chunter'
|
|
||||||
import core, { TxOperations, type Client, type Data, type Doc } from '@hcengineering/core'
|
import core, { TxOperations, type Client, type Data, type Doc } from '@hcengineering/core'
|
||||||
import {
|
import {
|
||||||
tryMigrate,
|
tryMigrate,
|
||||||
@ -28,7 +27,7 @@ import card from '.'
|
|||||||
|
|
||||||
export const cardOperation: MigrateOperation = {
|
export const cardOperation: MigrateOperation = {
|
||||||
async migrate (client: MigrationClient, mode): Promise<void> {
|
async migrate (client: MigrationClient, mode): Promise<void> {
|
||||||
await tryMigrate(mode, client, chunterId, [
|
await tryMigrate(mode, client, cardId, [
|
||||||
{
|
{
|
||||||
state: 'set-parent-info',
|
state: 'set-parent-info',
|
||||||
mode: 'upgrade',
|
mode: 'upgrade',
|
||||||
@ -37,7 +36,7 @@ export const cardOperation: MigrateOperation = {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
async upgrade (state: Map<string, Set<string>>, client: () => Promise<MigrationUpgradeClient>, mode): Promise<void> {
|
async upgrade (state: Map<string, Set<string>>, client: () => Promise<MigrationUpgradeClient>, mode): Promise<void> {
|
||||||
await tryUpgrade(mode, state, client, chunterId, [
|
await tryUpgrade(mode, state, client, cardId, [
|
||||||
{
|
{
|
||||||
state: 'migrateViewlets-v2',
|
state: 'migrateViewlets-v2',
|
||||||
func: migrateViewlets
|
func: migrateViewlets
|
||||||
|
Loading…
Reference in New Issue
Block a user