1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +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

@@ -565,8 +565,12 @@ export class ApiService implements ApiServiceAbstraction {
return this.send("PUT", "/ciphers/share", request, true, false);
}
putCipherCollections(id: string, request: CipherCollectionsRequest): Promise<any> {
return this.send("PUT", "/ciphers/" + id + "/collections", request, true, false);
async putCipherCollections(
id: string,
request: CipherCollectionsRequest,
): Promise<CipherResponse> {
const response = await this.send("PUT", "/ciphers/" + id + "/collections", request, true, true);
return new CipherResponse(response);
}
putCipherCollectionsAdmin(id: string, request: CipherCollectionsRequest): Promise<any> {