From fd54ae923da865931a4497aabdab4708946d4609 Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Tue, 2 Jul 2019 19:16:56 +0300 Subject: [PATCH] fix: @feathersjs/adapter-commons: remove data from `remove` arguments (#1426) --- packages/adapter-commons/lib/service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/adapter-commons/lib/service.js b/packages/adapter-commons/lib/service.js index 2e2780075a..9e6dfc76c6 100644 --- a/packages/adapter-commons/lib/service.js +++ b/packages/adapter-commons/lib/service.js @@ -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); } };