mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor clean up for webhooks
This commit is contained in:
parent
3f04c1679b
commit
44d20a4a1b
@ -112,15 +112,11 @@ class WebhookSingle implements ShouldQueue
|
||||
|
||||
$client = new Client(['headers' => array_merge($base_headers, $headers)]);
|
||||
|
||||
nlog("attempting ". $subscription->target_url);
|
||||
|
||||
try {
|
||||
$response = $client->post($subscription->target_url, [
|
||||
RequestOptions::JSON => $data, // or 'json' => [...]
|
||||
]);
|
||||
|
||||
nlog($response->getStatusCode());
|
||||
|
||||
SystemLogger::dispatch(
|
||||
array_merge((array) $response, $data),
|
||||
SystemLog::CATEGORY_WEBHOOK,
|
||||
|
Loading…
x
Reference in New Issue
Block a user