diff --git a/app/Jobs/ProcessWebhook.php b/app/Jobs/ProcessWebhook.php index 09bada2cc..cf2485e84 100644 --- a/app/Jobs/ProcessWebhook.php +++ b/app/Jobs/ProcessWebhook.php @@ -23,7 +23,9 @@ class ProcessWebhook implements ShouldQueue public function handle(): void { try { - Http::post($this->webhookConfiguration->endpoint, $this->data)->throw(); + Http::withHeader('X-Webhook-Event', $this->eventName) + ->post($this->webhookConfiguration->endpoint, $this->data) + ->throw(); $successful = now(); } catch (\Exception) { $successful = null;