forked from loafle/openapi-generator-original
Update api.service.mustache (#16406)
Fix miscast types. At compile time, it says it can't find toISOString because the parameter is of type string, because modifies the whole thing.
This commit is contained in:
parent
80121aa88f
commit
0f8f18e727
@ -93,7 +93,7 @@ export class {{classname}} {
|
||||
{{^isArray}}
|
||||
if ({{paramName}} !== undefined && {{paramName}} !== null) {
|
||||
{{#isDateTime}}
|
||||
queryParameters.append('{{baseName}}', <any>{{paramName}}.toISOString());
|
||||
queryParameters.append('{{baseName}}', (<any>{{paramName}}).toISOString());
|
||||
{{/isDateTime}}
|
||||
{{^isDateTime}}
|
||||
queryParameters.append('{{baseName}}', <any>{{paramName}});
|
||||
|
Loading…
x
Reference in New Issue
Block a user