Skip to content

Commit 8f60c47

Browse files
authored
Fix card migration staging (#8403)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent d994ed2 commit 8f60c47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: models/card/src/migration.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
// limitations under the License.
1414
//
1515

16-
import { DOMAIN_CARD } from '@hcengineering/card'
17-
import { chunterId } from '@hcengineering/chunter'
16+
import { cardId, DOMAIN_CARD } from '@hcengineering/card'
1817
import core, { TxOperations, type Client, type Data, type Doc } from '@hcengineering/core'
1918
import {
2019
tryMigrate,
@@ -28,7 +27,7 @@ import card from '.'
2827

2928
export const cardOperation: MigrateOperation = {
3029
async migrate (client: MigrationClient, mode): Promise<void> {
31-
await tryMigrate(mode, client, chunterId, [
30+
await tryMigrate(mode, client, cardId, [
3231
{
3332
state: 'set-parent-info',
3433
mode: 'upgrade',
@@ -37,7 +36,7 @@ export const cardOperation: MigrateOperation = {
3736
])
3837
},
3938
async upgrade (state: Map<string, Set<string>>, client: () => Promise<MigrationUpgradeClient>, mode): Promise<void> {
40-
await tryUpgrade(mode, state, client, chunterId, [
39+
await tryUpgrade(mode, state, client, cardId, [
4140
{
4241
state: 'migrateViewlets-v2',
4342
func: migrateViewlets

0 commit comments

Comments
 (0)