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:
@@ -56,7 +56,7 @@ describe("DefaultAdminTaskService", () => {
|
||||
expect(apiService.send).toHaveBeenCalledWith(
|
||||
"POST",
|
||||
`/tasks/${organizationId}/bulk-create`,
|
||||
tasks,
|
||||
{ tasks },
|
||||
true,
|
||||
true,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user