mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-01 21:10:49 +08:00
[PM-31282] Bugfix: Pass orgId to Admin Bulk Delete API
This commit is contained in:
parent
f3686c657b
commit
3f5ca7155b
@ -1092,7 +1092,7 @@ describe("Cipher Service", () => {
|
||||
|
||||
await cipherService.deleteManyWithServer(testCipherIds, userId, true, orgId);
|
||||
|
||||
expect(apiSpy).toHaveBeenCalled();
|
||||
expect(apiSpy).toHaveBeenCalledWith({ ids: testCipherIds, organizationId: orgId });
|
||||
});
|
||||
|
||||
it("should use SDK to delete multiple ciphers when feature flag is enabled", async () => {
|
||||
|
||||
@ -1422,7 +1422,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
return;
|
||||
}
|
||||
|
||||
const request = new CipherBulkDeleteRequest(ids);
|
||||
const request = new CipherBulkDeleteRequest(ids, orgId);
|
||||
if (asAdmin) {
|
||||
await this.apiService.deleteManyCiphersAdmin(request);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user