mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for import
This commit is contained in:
parent
84041ead51
commit
b3fd7f70c8
@ -1654,6 +1654,8 @@ class Import implements ShouldQueue
|
||||
{
|
||||
$current_db = config('database.default');
|
||||
|
||||
nlog($this->company);
|
||||
|
||||
$local_company = Company::on($current_db)->where('company_key', $this->company->company_key)->first();
|
||||
|
||||
MultiDB::setDb('db-ninja-01');
|
||||
@ -1692,7 +1694,7 @@ class Import implements ShouldQueue
|
||||
private function processNinjaTokens(array $data)
|
||||
{
|
||||
$current_db = config('database.default');
|
||||
$local_company = Company::find($this->company->id);
|
||||
$local_company = Company::on($current_db)->where('company_key', $this->company->company_key)->first();
|
||||
|
||||
MultiDB::setDb('db-ninja-01');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user