Skip to content

Commit f19a118

Browse files
committed
apply the query params for file upload
1 parent 1c2b015 commit f19a118

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@povio/openapi-codegen-cli",
3-
"version": "1.2.9",
3+
"version": "1.2.10",
44
"main": "./dist/index.js",
55
"bin": {
66
"openapi-codegen": "./dist/sh.js"

src/generators/templates/partials/query-use-mutation.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const {{queryName endpoint mutation=true}} = (options?: AppMutationOption
2424
}
2525
}
2626
}
27-
await axios[method](uploadInstructions.url, file, {
27+
await axios[method](uploadInstructions.url, dataToSend, {
2828
headers: {
2929
"Content-Type": file.type,
3030
},

0 commit comments

Comments
 (0)