( workspace: Workspace, queryClient: QueryClient, )
| 332 | }; |
| 333 | |
| 334 | export const deleteWorkspace = ( |
| 335 | workspace: Workspace, |
| 336 | queryClient: QueryClient, |
| 337 | ) => { |
| 338 | return { |
| 339 | mutationFn: (options: DeleteWorkspaceOptions) => { |
| 340 | return API.deleteWorkspace(workspace.id, options); |
| 341 | }, |
| 342 | onSuccess: async (build: WorkspaceBuild) => { |
| 343 | await updateWorkspaceBuild(build, queryClient); |
| 344 | }, |
| 345 | }; |
| 346 | }; |
| 347 | |
| 348 | export const stopWorkspace = ( |
| 349 | workspace: Workspace, |
no test coverage detected