1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 03:33:30 +00:00

[PM-31282] Bugfix: Pass orgId to Admin Bulk Delete API

This commit is contained in:
Nik Gilmore
2026-02-03 12:35:13 -08:00
committed by GitHub
parent f3686c657b
commit 3f5ca7155b
2 changed files with 2 additions and 2 deletions

View File

@@ -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 () => {

View File

@@ -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 {