1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

Only sync when there is at least one migration

This commit is contained in:
Bernd Schoolmann
2025-10-30 10:32:31 +01:00
parent fc24ad7e18
commit 09f1188384

View File

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