8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd2e2e commit a74431cCopy full SHA for a74431c
intbot/core/endpoints/webhooks.py
@@ -2,6 +2,7 @@
2
import json
3
4
from core.models import Webhook
5
+from core.tasks import process_webhook
6
from django.conf import settings
7
from django.http.response import HttpResponseNotAllowed, JsonResponse
8
from django.views.decorators.csrf import csrf_exempt
@@ -19,6 +20,7 @@ def internal_webhook_endpoint(request):
19
20
source="internal",
21
content=json.loads(request.body),
22
)
23
+ process_webhook.enqueue(str(wh.uuid))
24
25
return JsonResponse({"status": "created", "guid": wh.uuid})
26
0 commit comments