1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-20 02:03:50 +00:00

[bug] Make activity a top level storage key (#656)

* [bug] Make activity a top level storage key

* [bug] use correct index for migration

* [bug] use correct index for migration part 2
This commit is contained in:
Addison Beck
2022-02-07 11:36:53 -05:00
committed by GitHub
parent 0760b53296
commit 6c08b40847
4 changed files with 33 additions and 15 deletions

View File

@@ -94,7 +94,6 @@ export class AccountProfile {
everBeenUnlocked?: boolean;
forcePasswordReset?: boolean;
hasPremiumPersonally?: boolean;
lastActive?: number;
lastSync?: string;
userId?: string;
usesKeyConnector?: boolean;

View File

@@ -9,6 +9,7 @@ export class State<
globals: TGlobalState;
activeUserId: string;
authenticatedAccounts: string[] = [];
accountActivity: { [userId: string]: number } = {};
constructor(globals: TGlobalState) {
this.globals = globals;