mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02:00
sequentualize cipher service getAllDecrypted
This commit is contained in:
parent
d917651d9f
commit
74c870683a
|
@ -43,6 +43,7 @@ import { SettingsService } from '../abstractions/settings.service';
|
||||||
import { StorageService } from '../abstractions/storage.service';
|
import { StorageService } from '../abstractions/storage.service';
|
||||||
import { UserService } from '../abstractions/user.service';
|
import { UserService } from '../abstractions/user.service';
|
||||||
|
|
||||||
|
import { sequentialize } from '../misc/sequentialize';
|
||||||
import { Utils } from '../misc/utils';
|
import { Utils } from '../misc/utils';
|
||||||
|
|
||||||
const Keys = {
|
const Keys = {
|
||||||
|
@ -259,6 +260,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@sequentialize(() => 'getAllDecrypted')
|
||||||
async getAllDecrypted(): Promise<CipherView[]> {
|
async getAllDecrypted(): Promise<CipherView[]> {
|
||||||
if (this.decryptedCipherCache != null) {
|
if (this.decryptedCipherCache != null) {
|
||||||
return this.decryptedCipherCache;
|
return this.decryptedCipherCache;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user