(workspace: Workspace, queryClient: QueryClient)
| 403 | }; |
| 404 | |
| 405 | export const activate = (workspace: Workspace, queryClient: QueryClient) => { |
| 406 | return { |
| 407 | mutationFn: () => { |
| 408 | return API.updateWorkspaceDormancy(workspace.id, false); |
| 409 | }, |
| 410 | onSuccess: (updatedWorkspace: Workspace) => { |
| 411 | queryClient.setQueryData( |
| 412 | workspaceByOwnerAndNameKey(workspace.owner_name, workspace.name), |
| 413 | updatedWorkspace, |
| 414 | ); |
| 415 | }, |
| 416 | }; |
| 417 | }; |
| 418 | |
| 419 | const updateWorkspaceBuild = async ( |
| 420 | build: WorkspaceBuild, |
no test coverage detected