From 1a04946632d02a2ae1e7bfc8a08ce84356797254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Mon, 2 Sep 2024 14:49:31 +0200 Subject: [PATCH] Fix bug in dispatching of event --- src/Controller/HandleWebhookAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/HandleWebhookAction.php b/src/Controller/HandleWebhookAction.php index 77e96e3..4431190 100644 --- a/src/Controller/HandleWebhookAction.php +++ b/src/Controller/HandleWebhookAction.php @@ -51,7 +51,7 @@ public function __invoke(Request $request): JsonResponse $this->webhookHandler->handle($data); - $this->eventDispatcher->dispatch(new WebhookHandledEvent($webhook)); + $this->eventDispatcher->dispatch(new WebhookHandledEvent($data)); } catch (\InvalidArgumentException $e) { throw new BadRequestHttpException($e->getMessage()); } finally {