mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
7 lines
188 B
JavaScript
7 lines
188 B
JavaScript
import _ from 'lodash';
|
|
|
|
module.exports = function deleteWebhook (user, req) {
|
|
delete user.preferences.webhooks[_.get(req, 'params.id')];
|
|
user.markModified('preferences.webhooks');
|
|
};
|