1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-28 19:02:42 +01:00

sequentualize cipher service getAllDecrypted

This commit is contained in:
Kyle Spearrin 2018-08-13 14:09:03 -04:00
parent d917651d9f
commit 74c870683a

View File

@ -43,6 +43,7 @@ import { SettingsService } from '../abstractions/settings.service';
import { StorageService } from '../abstractions/storage.service';
import { UserService } from '../abstractions/user.service';
import { sequentialize } from '../misc/sequentialize';
import { Utils } from '../misc/utils';
const Keys = {
@ -259,6 +260,7 @@ export class CipherService implements CipherServiceAbstraction {
return response;
}
@sequentialize(() => 'getAllDecrypted')
async getAllDecrypted(): Promise<CipherView[]> {
if (this.decryptedCipherCache != null) {
return this.decryptedCipherCache;