mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Fix webhooks (#7622)
* fix userServices.js * comply with eslint * Remove conversion to string
This commit is contained in:
committed by
Matteo Pagliazzi
parent
efeb2c1c8e
commit
57bb4d8c10
@@ -247,7 +247,7 @@ habitrpg.controller('SettingsCtrl',
|
||||
$scope.hasWebhooks = _.size(webhooks);
|
||||
})
|
||||
$scope.addWebhook = function(url) {
|
||||
User.addWebhook({body:{url:url, id:Shared.uuid()}});
|
||||
User.addWebhook({body:{url:url, enabled:true}});
|
||||
$scope._newWebhook.url = '';
|
||||
}
|
||||
$scope.saveWebhook = function(id,webhook) {
|
||||
|
||||
Reference in New Issue
Block a user