mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
shared-code-webhooks
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
module.exports = function(user, req, cb) {
|
||||
|
||||
module.exports = function(user, req) {
|
||||
delete user.preferences.webhooks[req.params.id];
|
||||
if (typeof user.markModified === "function") {
|
||||
user.markModified('preferences.webhooks');
|
||||
}
|
||||
return typeof cb === "function" ? cb(null, user.preferences.webhooks) : void 0;
|
||||
user.markModified('preferences.webhooks');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user