Minor clean up for webhooks

This commit is contained in:
David Bomba 2023-01-29 18:41:24 +11:00
parent 3f04c1679b
commit 44d20a4a1b

View File

@ -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,