Skip to content

Commit 56ce925

Browse files
committed
fixed bad object key causing errors in requests
1 parent cec54a8 commit 56ce925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
console.log(`Requesting ${path} with params: `, params)
1717

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

2929
return (await request({
3030
method: 'POST',
31-
uri: this.endpoint + path,
31+
url: this.endpoint + path,
3232
body: body,
3333
json: true
3434
})).body

0 commit comments

Comments
 (0)