diff --git a/lib/recurly.js b/lib/recurly.js index 99fef9d1c..d29add849 100644 --- a/lib/recurly.js +++ b/lib/recurly.js @@ -307,6 +307,10 @@ export class Recurly extends Emitter { return Object.assign({}, data, { [by]: piece }); }); + if (chunks.length === 0) { + return Promise.denodeify(this.request.bind(this))(method, route, data); + } + return new Promise((resolve, reject) => { const part = (err, res) => { // if we have any errors that are not 404, reject