Skip to content

Commit a74431c

Browse files
committed
add missing processing
1 parent 0cd2e2e commit a74431c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

intbot/core/endpoints/webhooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33

44
from core.models import Webhook
5+
from core.tasks import process_webhook
56
from django.conf import settings
67
from django.http.response import HttpResponseNotAllowed, JsonResponse
78
from django.views.decorators.csrf import csrf_exempt
@@ -19,6 +20,7 @@ def internal_webhook_endpoint(request):
1920
source="internal",
2021
content=json.loads(request.body),
2122
)
23+
process_webhook.enqueue(str(wh.uuid))
2224

2325
return JsonResponse({"status": "created", "guid": wh.uuid})
2426

0 commit comments

Comments
 (0)