fix_done_state_migration (#3703)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-09-15 15:15:29 +06:00 committed by GitHub
parent 538f95f94c
commit b5275c7f3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}