Skip to content

Commit

Permalink
Fix bug in dispatching of event
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Sep 2, 2024
1 parent 2cacd28 commit 1a04946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/HandleWebhookAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1a04946

Please sign in to comment.