From 09f1188384cc925609e5c599f05996aca5a9fd3b Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 30 Oct 2025 10:32:31 +0100 Subject: [PATCH] Only sync when there is at least one migration --- .../encrypted-migrator/default-encrypted-migrator.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/common/src/key-management/encrypted-migrator/default-encrypted-migrator.ts b/libs/common/src/key-management/encrypted-migrator/default-encrypted-migrator.ts index e2d04ee4d13..6ecebb108b4 100644 --- a/libs/common/src/key-management/encrypted-migrator/default-encrypted-migrator.ts +++ b/libs/common/src/key-management/encrypted-migrator/default-encrypted-migrator.ts @@ -69,7 +69,9 @@ export class DefaultEncryptedMigrator implements EncryptedMigrator { } this.logService.mark("[Encrypted Migrator] Finish"); this.logService.info(`[Encrypted Migrator] Completed migrations for user: ${userId}`); - await this.syncService.fullSync(true); + if (this.migrations.length > 0) { + await this.syncService.fullSync(true); + } } catch (error) { this.logService.error( `[Encrypted Migrator] Error running migrations for user: ${userId}`,