Skip to content

Commit 8552ea2

Browse files
committed
Fix api typo, remove logging
1 parent 06abf62 commit 8552ea2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

site/src/api/api.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ export const getWorkspaceResources = async (workspaceBuildID: string): Promise<T
126126

127127
const postWorkspaceBuild =
128128
(transition: string) =>
129-
async (workspaceId: string, templateVersionId?: string): Promise<TypesGen.WorkspaceBuild> => {
129+
async (workspaceId: string, template_version_id?: string): Promise<TypesGen.WorkspaceBuild> => {
130130
const payload = {
131131
transition,
132-
templateVersionId,
132+
template_version_id,
133133
}
134134
const response = await axios.post(`/api/v2/workspaces/${workspaceId}/builds`, payload)
135135
return response.data

site/src/xServices/workspace/workspaceXService.ts

-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ export const workspaceMachine = createMachine(
283283
return await API.getWorkspace(event.workspaceId)
284284
},
285285
getTemplate: async (context) => {
286-
console.log("get template", context.template?.active_version_id)
287286
if (context.workspace) {
288287
return await API.getTemplate(context.workspace.template_id)
289288
} else {
@@ -298,7 +297,6 @@ export const workspaceMachine = createMachine(
298297
}
299298
},
300299
startWorkspace: async (context) => {
301-
console.log("start workspace", context.template?.active_version_id)
302300
if (context.workspace) {
303301
return await API.startWorkspace(context.workspace.id, context.template?.active_version_id)
304302
} else {

0 commit comments

Comments
 (0)