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:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user