Skip to content

Commit f8fa871

Browse files
author
Omri Peleg
committed
Fix Typo
1 parent 5bd79e8 commit f8fa871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/targets/rapidql/rapidql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function (source, options) {
3131
code.push(` json: true,`)
3232
code.push(` body: ${source.postData.text}`)
3333
} else if(source.postData.params) {
34-
code.push(` form : {\n${Object.entries(source.postData.params).map(([key, val]) => `"${key}":"${val}"`).join(",\n")}\n }`);
34+
code.push(` form : {\n${source.postData.params.map(param => `"${param.name}":"${param.value}"`).join(",\n")}\n }`);
3535
} else {
3636
code.push(` body : ${source.postData.text}`);
3737
}

0 commit comments

Comments
 (0)