1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

sequentialize updates

This commit is contained in:
Kyle Spearrin
2018-07-23 15:12:32 -04:00
parent 8e586437e0
commit 61d2040518
2 changed files with 9 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ export class CryptoService implements CryptoServiceAbstraction {
return this.storageService.get<string>(Keys.keyHash);
}
@sequentialize()
@sequentialize(() => 'getEncKey')
async getEncKey(): Promise<SymmetricCryptoKey> {
if (this.encKey != null) {
return this.encKey;
@@ -166,7 +166,7 @@ export class CryptoService implements CryptoServiceAbstraction {
return this.privateKey;
}
@sequentialize()
@sequentialize(() => 'getOrgKeys')
async getOrgKeys(): Promise<Map<string, SymmetricCryptoKey>> {
if (this.orgKeys != null && this.orgKeys.size > 0) {
return this.orgKeys;