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:
parent
d24ca06eac
commit
30f85d8e23
@ -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';
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user