File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,10 @@ export const getWorkspaceResources = async (workspaceBuildID: string): Promise<T
126
126
127
127
const postWorkspaceBuild =
128
128
( transition : string ) =>
129
- async ( workspaceId : string , templateVersionId ?: string ) : Promise < TypesGen . WorkspaceBuild > => {
129
+ async ( workspaceId : string , template_version_id ?: string ) : Promise < TypesGen . WorkspaceBuild > => {
130
130
const payload = {
131
131
transition,
132
- templateVersionId ,
132
+ template_version_id ,
133
133
}
134
134
const response = await axios . post ( `/api/v2/workspaces/${ workspaceId } /builds` , payload )
135
135
return response . data
Original file line number Diff line number Diff line change @@ -283,7 +283,6 @@ export const workspaceMachine = createMachine(
283
283
return await API . getWorkspace ( event . workspaceId )
284
284
} ,
285
285
getTemplate : async ( context ) => {
286
- console . log ( "get template" , context . template ?. active_version_id )
287
286
if ( context . workspace ) {
288
287
return await API . getTemplate ( context . workspace . template_id )
289
288
} else {
@@ -298,7 +297,6 @@ export const workspaceMachine = createMachine(
298
297
}
299
298
} ,
300
299
startWorkspace : async ( context ) => {
301
- console . log ( "start workspace" , context . template ?. active_version_id )
302
300
if ( context . workspace ) {
303
301
return await API . startWorkspace ( context . workspace . id , context . template ?. active_version_id )
304
302
} else {
You can’t perform that action at this time.
0 commit comments