Fixes for redis timeout and set invoice->deleted_at to null when converting quotes to invoices

This commit is contained in:
David Bomba 2021-08-23 08:05:34 +10:00
parent 850c8bbf28
commit 4961c502f0
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,8 @@ class CloneQuoteToInvoiceFactory
$invoice->number = null;
$invoice->date = now()->format('Y-m-d');
$invoice->balance = 0;
$invoice->deleted_at = null;
return $invoice;
}
}

View File

@ -207,6 +207,7 @@ return [
['options' => [
'replication' => 'sentinel',
'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
'sentinel_timeout' => 1.0,
'parameters' => [
'password' => env('REDIS_PASSWORD', null),
'database' => env('REDIS_DB', 0),
@ -225,6 +226,7 @@ return [
['options' => [
'replication' => 'sentinel',
'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
'sentinel_timeout' => 1.0,
'parameters' => [
'password' => env('REDIS_PASSWORD', null),
'database' => env('REDIS_CACHE_DB', 1),