diff --git a/lib/index.js b/lib/index.js index 7799ceb..9ddc2fc 100644 --- a/lib/index.js +++ b/lib/index.js @@ -342,13 +342,9 @@ class Client { Joi.assert(params, Joi.object().pattern(/.*/, Joi.string()), 'Specify valid params') return this._axios.post( - `/api/repos/${owner}/${repo}/builds/${number}/promote`, - Querystring.stringify( - Object.assign( - { target: target }, - params - ) - ) + `/api/repos/${owner}/${repo}/builds/${number}/promote`, + undefined, + { params: Object.assign({ target: target }, params) } ) } @@ -427,7 +423,8 @@ class Client { return this._axios.post( `/api/repos/${owner}/${repo}/builds`, - Querystring.stringify(params) + undefined, + { params: params } ) }