UBER-408 Issue as task (#3497)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-07-13 19:33:23 +06:00
committed by GitHub
parent d29a2df4d9
commit ab02db5890
46 changed files with 216 additions and 175 deletions
+2 -2
View File
@@ -517,8 +517,8 @@ export async function convert (
}
if (existing !== undefined) {
if (existing.state !== state?._id) {
update.state = state._id
if (existing.status !== state?._id) {
update.status = state._id
}
if (Object.keys(update).length > 0) {
await ops.update(existing, update)