mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-28 16:16:50 +01: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