Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 8e5e640

Browse files
fixed remove-all-related-data hook
1 parent 69bbcd0 commit 8e5e640

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/services/users/hooks/remove-all-related-user-data.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = () => {
77
try {
88
return await hook.app.service(service).remove(null, {query});
99
} catch (err) {
10-
console.log('ERROR ON SERVICE', service);
10+
hook.app.error('ERROR ON SERVICE' + service);
1111
throw new errors.GeneralError(err.message);
1212
}
1313
}
@@ -24,8 +24,6 @@ module.exports = () => {
2424

2525
const query = hook.params.query;
2626

27-
let res;
28-
2927
if (query.deleteContributions === true) {
3028
await deleteData('contributions', {
3129
userId: user._id,

0 commit comments

Comments
 (0)