Skip to content

Commit

Permalink
fix: @feathersjs/adapter-commons: remove data from remove arguments (
Browse files Browse the repository at this point in the history
  • Loading branch information
vonagam authored and daffl committed Jul 2, 2019
1 parent b605ab8 commit fd54ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adapter-commons/lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ module.exports = class AdapterService {
return callMethod(this, '_patch', id, data, params);
}

remove (id, data, params) {
remove (id, params) {
if (id === null && !checkMulti('remove', this.options.multi)) {
return Promise.reject(new MethodNotAllowed(`Can not remove multiple entries`));
}

return callMethod(this, '_remove', id, data, params);
return callMethod(this, '_remove', id, params);
}
};

0 comments on commit fd54ae9

Please sign in to comment.