Skip to content

Commit d2189a1

Browse files
committed
fix: Don’t double stringify the body you nut
I tried too hard to make fetch happen.
1 parent 8a19681 commit d2189a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/instance/apis/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const SnippedGeneratorNodeJsPlugin = {
3434
\theaders: {
3535
\t\t${headers.map((val: string, key: string) => `"${key}": "${val}"`).valueSeq().join(',\n\t\t')}
3636
\t},` : ''}${reqBody ? `
37-
\tbody: JSON.stringify(${stringBody}),` : ''}
37+
\tbody: ${stringBody},` : ''}
3838
});
3939
const data = await response.json();
4040
console.log(data);

0 commit comments

Comments
 (0)