Skip to content

Commit 473343f

Browse files
authored
[Typescript Fetch] Fix missing closing bracket (#21549)
1 parent d63459c commit 473343f

File tree

1 file changed

+1
-1
lines changed
  • modules/openapi-generator/src/main/resources/typescript-fetch

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export class {{classname}} extends runtime.BaseAPI {
291291
{{^isDateTimeType}}
292292
{{#isDateType}}
293293
if (requestParameters['{{paramName}}'] instanceof Date) {
294-
urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(requestParameters['{{paramName}}'].toISOString().substring(0,10));
294+
urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(requestParameters['{{paramName}}'].toISOString().substring(0,10)));
295295
} else {
296296
urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters['{{paramName}}'])));
297297
}

0 commit comments

Comments
 (0)