1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

fixed request shape (#13301)

This commit is contained in:
SmithThe4th
2025-02-06 16:36:20 -05:00
committed by GitHub
parent 516246eab8
commit 179ddc271f
2 changed files with 8 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ describe("DefaultAdminTaskService", () => {
expect(apiService.send).toHaveBeenCalledWith(
"POST",
`/tasks/${organizationId}/bulk-create`,
tasks,
{ tasks },
true,
true,
);

View File

@@ -43,6 +43,12 @@ export class DefaultAdminTaskService implements AdminTaskService {
organizationId: OrganizationId,
tasks: CreateTasksRequest[],
): Promise<void> {
await this.apiService.send("POST", `/tasks/${organizationId}/bulk-create`, tasks, true, true);
await this.apiService.send(
"POST",
`/tasks/${organizationId}/bulk-create`,
{ tasks },
true,
true,
);
}
}