mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[PM-24379] Properly construct ListResponse from API (#15981)
This commit is contained in:
@@ -672,13 +672,14 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getManyFromApiForOrganization(organizationId: string): Promise<CipherView[]> {
|
async getManyFromApiForOrganization(organizationId: string): Promise<CipherView[]> {
|
||||||
const response = await this.apiService.send(
|
const r = await this.apiService.send(
|
||||||
"GET",
|
"GET",
|
||||||
"/ciphers/organization-details/assigned?organizationId=" + organizationId,
|
"/ciphers/organization-details/assigned?organizationId=" + organizationId,
|
||||||
null,
|
null,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
const response = new ListResponse(r, CipherResponse);
|
||||||
return this.decryptOrganizationCiphersResponse(response, organizationId);
|
return this.decryptOrganizationCiphersResponse(response, organizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user