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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user