Skip to content
Snippets Groups Projects
Commit 5684251f authored by vlorentz's avatar vlorentz
Browse files

save_origin_visit_webhook: Make origin_url mandatory

If not provided, .get() would return None, which makes get_save_origin_requests_to_update
return every SCN request. There is no reason to want the webhook to do that.
parent 97b205e4
No related branches found
No related tags found
1 merge request!1304save_origin_visit_webhook: Make origin_url mandatory
Pipeline #10008 failed
......@@ -40,7 +40,7 @@ def save_origin_visit_webhook(request):
except ValueError:
raise BadInputExc("Webhook body verification failed")
origin_url = payload.get("origin_url")
origin_url = payload["origin_url"]
save_requests = get_save_origin_requests_to_update(origin_url=origin_url)
if save_requests.count() > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment