From f7792fb9ae0ef363ce928771c0940366c63fa6bd Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Tue, 11 Feb 2025 18:19:26 +0400 Subject: [PATCH] Qfix doc updates migration (#7984) Signed-off-by: Alexey Zinoviev --- models/activity/src/migration.ts | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/models/activity/src/migration.ts b/models/activity/src/migration.ts index 9fecfafe79..85f862e8c0 100644 --- a/models/activity/src/migration.ts +++ b/models/activity/src/migration.ts @@ -249,9 +249,9 @@ async function migrateAccountsInDocUpdates (client: MigrationClient): Promise['attributeUpdates'], field: P - ): boolean { + ): void { const oldValue = au?.[field] - if (oldValue == null) return false + if (oldValue == null) return let changed = false let newValue: any @@ -275,8 +275,6 @@ async function migrateAccountsInDocUpdates (client: MigrationClient): Promise