Skip to content

Commit

Permalink
Show eventName
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinoscar committed Oct 30, 2024
1 parent 7a447b0 commit 8045914
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Jobs/ProcessWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public function __construct(

public function handle(): void
{
$this->data = [
'event' => $this->eventName,
'attributes' => $this->data,
];

try {
Http::post($this->webhookConfiguration->endpoint, $this->data)->throw();
$successful = now();
Expand Down

0 comments on commit 8045914

Please sign in to comment.