mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 01:34:35 -04: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']);
|
// $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) {
|
if (! $project) {
|
||||||
$this->message = 'Project not found';
|
$this->message = 'Project not found';
|
||||||
|
@ -78,7 +78,7 @@ class WebhookSingle implements ShouldQueue
|
|||||||
$subscription = Webhook::with('company')->find($this->subscription_id);
|
$subscription = Webhook::with('company')->find($this->subscription_id);
|
||||||
|
|
||||||
if ($subscription) {
|
if ($subscription) {
|
||||||
nlog("firing event ID {$subscription->event_id}");
|
nlog("firing event ID {$subscription->event_id} company_id {$subscription->company_id}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$subscription) {
|
if (!$subscription) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user