diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/user/hooks/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/user/hooks/index.js b/src/services/user/hooks/index.js index 53df7b4..8210e81 100644 --- a/src/services/user/hooks/index.js +++ b/src/services/user/hooks/index.js @@ -77,7 +77,7 @@ function removeUserMeals () { // Set provider as undefined so we avoid an infinite loop if this hook is // set on the resource we are requesting. var params = Object.assign({}, hook.params, { provider: undefined }); - return hook.app.service('meals').remove(null, { userid: hook.user.id }).then(function (data) { + return hook.app.service('meals').remove(null, { userid: hook.params.user.id }).then(function (data) { resolve(hook); }).catch(reject); }); |
