1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes

This commit is contained in:
David Bomba 2021-05-10 21:05:44 +10:00
parent 16c5665cc6
commit 4979ed94de
4 changed files with 16 additions and 11 deletions

View File

@ -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();
}
}

View File

@ -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();

View File

@ -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();

View File

@ -1,7 +1,7 @@
<footer class="app-footer">
<div class="ml-auto">
<span>Powered by</span>
<a href="https://invoiceninja.com">InvoiceNinja</a> &copy; 2018 Invoice Ninja LLC.
<a href="https://invoiceninja.com">InvoiceNinja</a> &copy; 2021 Invoice Ninja LLC.
</div>
</footer>