Skip to content

Commit

Permalink
Merge pull request #13 from tiagosiebler/fixexternalref
Browse files Browse the repository at this point in the history
v1.0.8: fix external program setter
  • Loading branch information
tiagosiebler authored May 6, 2021
2 parents daf8cb0 + d82be6c commit 7dc968d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ftx-api",
"version": "1.0.7",
"version": "1.0.8",
"description": "Node.js connector for FTX's REST APIs and WebSockets",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/util/requestWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class RequestUtil {
}

post(endpoint: string, params?: any): GenericAPIResponse {
return this._call('POST', endpoint, { ...params, externalReferralProgram: this.programId });
return this._call('POST', endpoint, { externalReferralProgram: this.programId, ...params });
}

delete(endpoint: string, params?: any): GenericAPIResponse {
Expand Down

0 comments on commit 7dc968d

Please sign in to comment.