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:
parent
0b2b3b2ab7
commit
174cbf499b
@ -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' => [...]
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user