Skip to content

Commit

Permalink
fixed bad object key causing errors in requests
Browse files Browse the repository at this point in the history
  • Loading branch information
freyamade committed May 15, 2023
1 parent cec54a8 commit 56ce925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
console.log(`Requesting ${path} with params: `, params)

return (await request({
uri: `${this.endpoint + path}${Object.keys(params).length > 0 ? `?${new URLSearchParams(params).toString()}` : ''}`,
url: `${this.endpoint + path}${Object.keys(params).length > 0 ? `?${new URLSearchParams(params).toString()}` : ''}`,
json: true
})).body
},
Expand All @@ -28,7 +28,7 @@ module.exports = {

return (await request({
method: 'POST',
uri: this.endpoint + path,
url: this.endpoint + path,
body: body,
json: true
})).body
Expand Down

0 comments on commit 56ce925

Please sign in to comment.