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' => [...] ]);