1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

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)]);
try {
$response = $client->post($subscription->target_url, [
$response = $client->{$subscription->rest_method}($subscription->target_url, [
RequestOptions::JSON => $data, // or 'json' => [...]
]);