From 174cbf499bca1248b7e74c7c6b1faad43874387a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 23 Jun 2023 11:15:32 +1000 Subject: [PATCH] Updates for sending the correct webhook verb --- app/Jobs/Util/WebhookSingle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index d840d8544359..ca6185a5c3dd 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -122,7 +122,7 @@ class WebhookSingle implements ShouldQueue $client = new Client(['headers' => array_merge($base_headers, $headers)]); try { - $response = $client->post($subscription->target_url, [ + $response = $client->{$subscription->rest_method}($subscription->target_url, [ RequestOptions::JSON => $data, // or 'json' => [...] ]);