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

Add logging around webhooks

This commit is contained in:
David Bomba 2023-03-03 09:09:04 +11:00
parent d24ca06eac
commit 30f85d8e23
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class ValidProjectForClient implements Rule
// $this->input['project_id'] = $this->decodePrimaryKey($this->input['project_id']);
// }
$project = Project::find($this->input['project_id']);
$project = Project::withTrashed()->find($this->input['project_id']);
if (! $project) {
$this->message = 'Project not found';

View File

@ -78,7 +78,7 @@ class WebhookSingle implements ShouldQueue
$subscription = Webhook::with('company')->find($this->subscription_id);
if ($subscription) {
nlog("firing event ID {$subscription->event_id}");
nlog("firing event ID {$subscription->event_id} company_id {$subscription->company_id}");
}
if (!$subscription) {