Skip to content

Commit

Permalink
fix: not use object spread operator because of the low version of N…
Browse files Browse the repository at this point in the history
…ode.js (#921)
  • Loading branch information
beajer committed Jan 20, 2021
1 parent e617b45 commit cd50f88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ proto.listV2 = async function listV2(query, options = {}) {
);
}
const params = this._objectRequestParams('GET', '', options);
params.query = {
'list-type': 2,
...query
};
params.query = Object.assign({ 'list-type': 2 }, query);
params.xmlResponse = true;
params.successStatuses = [200];

Expand Down

0 comments on commit cd50f88

Please sign in to comment.