mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
fixed request shape (#13301)
This commit is contained in:
@@ -56,7 +56,7 @@ describe("DefaultAdminTaskService", () => {
|
|||||||
expect(apiService.send).toHaveBeenCalledWith(
|
expect(apiService.send).toHaveBeenCalledWith(
|
||||||
"POST",
|
"POST",
|
||||||
`/tasks/${organizationId}/bulk-create`,
|
`/tasks/${organizationId}/bulk-create`,
|
||||||
tasks,
|
{ tasks },
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -43,6 +43,12 @@ export class DefaultAdminTaskService implements AdminTaskService {
|
|||||||
organizationId: OrganizationId,
|
organizationId: OrganizationId,
|
||||||
tasks: CreateTasksRequest[],
|
tasks: CreateTasksRequest[],
|
||||||
): Promise<void> {
|
): 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