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:
Yoonho Go 2023-08-25 17:41:22 +09:00 committed by GitHub
parent 80121aa88f
commit 0f8f18e727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}});