mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for stale invoice cleanup
This commit is contained in:
parent
78d465daea
commit
1e7b8e9111
@ -48,6 +48,7 @@ class CleanStaleInvoiceOrder implements ShouldQueue
|
||||
if (! config('ninja.db.multi_db_enabled')) {
|
||||
Invoice::query()
|
||||
->withTrashed()
|
||||
->where('status_id', Invoice::STATUS_SENT)
|
||||
->where('is_proforma', 1)
|
||||
->where('created_at', '<', now()->subHour())
|
||||
->cursor()
|
||||
|
Loading…
Reference in New Issue
Block a user