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