Fixes for system logger constructor

This commit is contained in:
David Bomba 2021-05-19 12:47:24 +10:00
parent f366acda5b
commit b8299f7b8e

View File

@ -44,10 +44,13 @@ class SystemLogger implements ShouldQueue
$this->event_id = $event_id; $this->event_id = $event_id;
$this->type_id = $type_id; $this->type_id = $type_id;
$this->client = $client; $this->client = $client;
$this->company = $company;
} }
public function handle() :void public function handle() :void
{ {
if(!$this->company)
return;
MultiDB::setDb($this->company->db); MultiDB::setDb($this->company->db);