1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Move lastSync State (#10272)

This commit is contained in:
Justin Baur
2024-08-06 15:01:42 -04:00
committed by GitHub
parent 887b98988a
commit dcb21c2685
22 changed files with 198 additions and 110 deletions

View File

@@ -699,6 +699,7 @@ export class ServiceContainer {
this.billingAccountProfileStateService,
this.tokenService,
this.authService,
this.stateProvider,
);
this.totpService = new TotpService(this.cryptoFunctionService, this.logService);
@@ -772,7 +773,6 @@ export class ServiceContainer {
const userId = (await this.stateService.getUserId()) as UserId;
await Promise.all([
this.eventUploadService.uploadEvents(userId as UserId),
this.syncService.setLastSync(new Date(0)),
this.cryptoService.clearKeys(),
this.cipherService.clear(userId),
this.folderService.clear(userId),