Fix git.ensure_user_webhooks

Typo had the unensure function overwrite the ensure function, the end
result being that everyone's webhooks were removed -_-
This commit is contained in:
Drew DeVault 2020-09-03 11:47:28 -04:00
parent c1044b390c
commit b1ff1910a3

View file

@ -164,9 +164,12 @@ class GitService(SrhtService):
}
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
def ensure_user_webhooks(self, user):
def unensure_user_webhooks(self, user):
config = { }
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
try:
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
except:
pass # nbd, upstream was probably deleted
def ensure_repo_webhooks(self, repo):
config = {