Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maccuaa committed Feb 3, 2020
1 parent 1423339 commit 4cfa3e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/apiInner.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ private {{classname}}AxiosParamCreator = (configuration?: Configuration) => {
{{^isListContainer}}
if ({{paramName}} !== undefined) {
{{#isDateTime}}
localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any).toISOString();
localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any instanceof Date) ?
({{paramName}} as any).toISOString() :
{{paramName}};
{{/isDateTime}}
{{^isDateTime}}
{{#isDate}}
Expand Down

0 comments on commit 4cfa3e7

Please sign in to comment.