mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +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) {
|
if (task.doneState != null) {
|
||||||
const newDoneStatus = oldStatusesMap.get(task.doneState)
|
const newDoneStatus = oldStatusesMap.get(task.doneState)
|
||||||
if (newStatus !== undefined) {
|
if (newDoneStatus !== undefined) {
|
||||||
update.doneState = newDoneStatus
|
update.doneState = newDoneStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ async function migrateStatuses (client: MigrationClient): Promise<void> {
|
|||||||
}
|
}
|
||||||
if (createTx.attributes.doneState != null) {
|
if (createTx.attributes.doneState != null) {
|
||||||
const newDoneStatus = oldStatusesMap.get(createTx.attributes.doneState)
|
const newDoneStatus = oldStatusesMap.get(createTx.attributes.doneState)
|
||||||
if (newStatus !== undefined) {
|
if (newDoneStatus !== undefined) {
|
||||||
update['tx.attributes.doneState'] = newDoneStatus
|
update['tx.attributes.doneState'] = newDoneStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -339,7 +339,7 @@ async function migrateStatuses (client: MigrationClient): Promise<void> {
|
|||||||
}
|
}
|
||||||
if (updateTx.operations.doneState != null) {
|
if (updateTx.operations.doneState != null) {
|
||||||
const newDoneStatus = oldStatusesMap.get(updateTx.operations.doneState)
|
const newDoneStatus = oldStatusesMap.get(updateTx.operations.doneState)
|
||||||
if (newStatus !== undefined) {
|
if (newDoneStatus !== undefined) {
|
||||||
update['tx.operations.doneState'] = newDoneStatus
|
update['tx.operations.doneState'] = newDoneStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user