mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5746 from turbo124/v5-develop
Fixes for system logger constructor
This commit is contained in:
commit
3459f18ece
@ -44,16 +44,19 @@ 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);
|
||||||
|
|
||||||
$client_id = $this->client ? $this->client->id : null;
|
$client_id = $this->client ? $this->client->id : null;
|
||||||
$user_id = $this->client ? $this->client->user_id : $this->company->owner()->id;
|
$user_id = $this->client ? $this->client->user_id : $this->company->owner()->id;
|
||||||
|
|
||||||
$sl = [
|
$sl = [
|
||||||
'client_id' => $client_id,
|
'client_id' => $client_id,
|
||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
|
Loading…
Reference in New Issue
Block a user