mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Adding include my items to the services and reports (#16987)
This commit is contained in:
@@ -408,14 +408,15 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new CipherResponse(r);
|
||||
}
|
||||
|
||||
async getCiphersOrganization(organizationId: string): Promise<ListResponse<CipherResponse>> {
|
||||
const r = await this.send(
|
||||
"GET",
|
||||
"/ciphers/organization-details?organizationId=" + organizationId,
|
||||
null,
|
||||
true,
|
||||
true,
|
||||
);
|
||||
async getCiphersOrganization(
|
||||
organizationId: string,
|
||||
includeMemberItems?: boolean,
|
||||
): Promise<ListResponse<CipherResponse>> {
|
||||
let url = "/ciphers/organization-details?organizationId=" + organizationId;
|
||||
if (includeMemberItems) {
|
||||
url += `&includeMemberItems=${includeMemberItems}`;
|
||||
}
|
||||
const r = await this.send("GET", url, null, true, true);
|
||||
return new ListResponse(r, CipherResponse);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user