mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Minor fixes
This commit is contained in:
parent
16c5665cc6
commit
4979ed94de
@ -69,8 +69,10 @@ class Kernel extends ConsoleKernel
|
||||
}
|
||||
|
||||
if(config('queue.default') == 'database' && Ninja::isSelfHost()) {
|
||||
|
||||
$schedule->command('queue:work')->everyMinute()->withoutOverlapping();
|
||||
$schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,11 +32,14 @@ class CheckClientExistence
|
||||
->where('email', auth('contact')->user()->email)
|
||||
->whereNotNull('email')
|
||||
->distinct('company_id')
|
||||
->whereNotNull('company_id')
|
||||
->whereHas('client', function ($query) {
|
||||
return $query->whereNull('deleted_at');
|
||||
})
|
||||
->get();
|
||||
|
||||
nlog($multiple_contacts);
|
||||
|
||||
if (count($multiple_contacts) == 0) {
|
||||
Auth::logout();
|
||||
|
||||
|
@ -91,15 +91,15 @@ class StartMigration implements ShouldQueue
|
||||
$archive = $zip->open(public_path("storage/{$this->filepath}"));
|
||||
$filename = pathinfo($this->filepath, PATHINFO_FILENAME);
|
||||
|
||||
if($this->company->id == $this->company->account->default_company_id)
|
||||
{
|
||||
$new_default_company = $this->company->account->companies->first();
|
||||
// if($this->company->id == $this->company->account->default_company_id)
|
||||
// {
|
||||
// $new_default_company = $this->company->account->companies->first();
|
||||
|
||||
if ($new_default_company) {
|
||||
$this->company->account->default_company_id = $new_default_company->id;
|
||||
$this->company->account->save();
|
||||
}
|
||||
}
|
||||
// if ($new_default_company) {
|
||||
// $this->company->account->default_company_id = $new_default_company->id;
|
||||
// $this->company->account->save();
|
||||
// }
|
||||
// }
|
||||
|
||||
$update_product_flag = $this->company->update_products;
|
||||
|
||||
@ -128,8 +128,8 @@ class StartMigration implements ShouldQueue
|
||||
|
||||
Storage::deleteDirectory(public_path("storage/migrations/{$filename}"));
|
||||
|
||||
$this->company->account->default_company_id = $this->company->id;
|
||||
$this->company->account->save();
|
||||
// $this->company->account->default_company_id = $this->company->id;
|
||||
// $this->company->account->save();
|
||||
|
||||
$this->company->update_products = $update_product_flag;
|
||||
$this->company->save();
|
||||
|
@ -1,7 +1,7 @@
|
||||
<footer class="app-footer">
|
||||
<div class="ml-auto">
|
||||
<span>Powered by</span>
|
||||
<a href="https://invoiceninja.com">InvoiceNinja</a> © 2018 Invoice Ninja LLC.
|
||||
<a href="https://invoiceninja.com">InvoiceNinja</a> © 2021 Invoice Ninja LLC.
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user