Updates for sending the correct webhook verb

This commit is contained in:
David Bomba 2023-06-23 11:15:32 +10:00
parent 0b2b3b2ab7
commit 174cbf499b

View File

@ -122,7 +122,7 @@ class WebhookSingle implements ShouldQueue
$client = new Client(['headers' => array_merge($base_headers, $headers)]); $client = new Client(['headers' => array_merge($base_headers, $headers)]);
try { try {
$response = $client->post($subscription->target_url, [ $response = $client->{$subscription->rest_method}($subscription->target_url, [
RequestOptions::JSON => $data, // or 'json' => [...] RequestOptions::JSON => $data, // or 'json' => [...]
]); ]);