Additional checks for SystemLogger
This commit is contained in:
parent
dd4dbf566b
commit
f2a8d94f3f
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ class SystemLogger implements ShouldQueue
|
|||
MultiDB::setDb($this->company->db);
|
||||
|
||||
$client_id = $this->client ? $this->client->id : null;
|
||||
|
||||
if(!$this->client && !$this->company->owner())
|
||||
return;
|
||||
|
||||
$user_id = $this->client ? $this->client->user_id : $this->company->owner()->id;
|
||||
|
||||
$sl = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue