Fix webhooks (#7622)

* fix userServices.js

* comply with eslint

* Remove conversion to string
This commit is contained in:
MathWhiz
2016-06-10 05:42:48 -05:00
committed by Matteo Pagliazzi
parent efeb2c1c8e
commit 57bb4d8c10
2 changed files with 5 additions and 5 deletions

View File

@@ -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) {