mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
fix_done_state_migration (#3703)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
538f95f94c
commit
b5275c7f3e
@ -306,7 +306,7 @@ async function migrateStatuses (client: MigrationClient): Promise<void> {
|
||||
}
|
||||
if (task.doneState != null) {
|
||||
const newDoneStatus = oldStatusesMap.get(task.doneState)
|
||||
if (newStatus !== undefined) {
|
||||
if (newDoneStatus !== undefined) {
|
||||
update.doneState = newDoneStatus
|
||||
}
|
||||
}
|
||||
@ -325,7 +325,7 @@ async function migrateStatuses (client: MigrationClient): Promise<void> {
|
||||
}
|
||||
if (createTx.attributes.doneState != null) {
|
||||
const newDoneStatus = oldStatusesMap.get(createTx.attributes.doneState)
|
||||
if (newStatus !== undefined) {
|
||||
if (newDoneStatus !== undefined) {
|
||||
update['tx.attributes.doneState'] = newDoneStatus
|
||||
}
|
||||
}
|
||||
@ -339,7 +339,7 @@ async function migrateStatuses (client: MigrationClient): Promise<void> {
|
||||
}
|
||||
if (updateTx.operations.doneState != null) {
|
||||
const newDoneStatus = oldStatusesMap.get(updateTx.operations.doneState)
|
||||
if (newStatus !== undefined) {
|
||||
if (newDoneStatus !== undefined) {
|
||||
update['tx.operations.doneState'] = newDoneStatus
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user