mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): Use react-query and refactor the workspaces page to use it (#5838)
This commit is contained in:
@@ -779,3 +779,10 @@ export const getTemplateVersionLogs = async (
|
||||
)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const updateWorkspaceVersion = async (
|
||||
workspace: TypesGen.Workspace,
|
||||
): Promise<TypesGen.WorkspaceBuild> => {
|
||||
const template = await getTemplate(workspace.template_id)
|
||||
return startWorkspace(workspace.id, template.active_version_id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user