sequentualize cipher service getAllDecrypted

This commit is contained in:
Kyle Spearrin 2018-08-13 14:09:03 -04:00
parent d917651d9f
commit 74c870683a
1 changed files with 2 additions and 0 deletions

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;