File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
internal-packages/compute/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class ComputeGatewayClient {
1212 async createTemplate (
1313 req : TemplateCreateRequest ,
1414 options ?: { signal ?: AbortSignal }
15- ) : Promise < { accepted : boolean ; templateId ?: string } > {
15+ ) : Promise < { accepted : boolean } > {
1616 const url = `${ this . opts . gatewayUrl } /api/templates` ;
1717
1818 const headers : Record < string , string > = {
@@ -36,11 +36,6 @@ export class ComputeGatewayClient {
3636 throw new Error ( `Gateway template creation failed (${ response . status } ): ${ errorBody } ` ) ;
3737 }
3838
39- if ( response . status === 202 ) {
40- return { accepted : true } ;
41- }
42-
43- const result = await response . json ( ) ;
44- return { accepted : false , templateId : result . template_id } ;
39+ return { accepted : response . status === 202 } ;
4540 }
4641}
You can’t perform that action at this time.
0 commit comments