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

[AC-2330] Updated Cipher Collections Now Sets Readonly Properly (#8549)

Update putCipherCollection call to get new cipher with updated edit value
This commit is contained in:
Jason Ng
2024-04-12 15:41:05 -04:00
committed by GitHub
parent 44d59f0d8c
commit c701ad9cf2
3 changed files with 9 additions and 5 deletions

View File

@@ -683,8 +683,8 @@ export class CipherService implements CipherServiceAbstraction {
async saveCollectionsWithServer(cipher: Cipher): Promise<any> {
const request = new CipherCollectionsRequest(cipher.collectionIds);
await this.apiService.putCipherCollections(cipher.id, request);
const data = cipher.toCipherData();
const response = await this.apiService.putCipherCollections(cipher.id, request);
const data = new CipherData(response);
await this.upsert(data);
}