mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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)]);
|
$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' => [...]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user