1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

convert sync service to ts

This commit is contained in:
Kyle Spearrin
2017-11-06 11:55:17 -05:00
parent b05426f953
commit 942d98d798
10 changed files with 199 additions and 243 deletions

View File

@@ -347,7 +347,7 @@ export default class CipherService {
this.decryptedCipherCache = null;
}
async replace(ciphers: CipherData[]): Promise<any> {
async replace(ciphers: { [id: string]: CipherData; }): Promise<any> {
const userId = await this.userService.getUserId();
await UtilsService.saveObjToStorage(Keys.ciphersPrefix + userId, ciphers);
this.decryptedCipherCache = null;