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