mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Better cleanup routine.
This commit is contained in:
@@ -29,8 +29,7 @@ class ExportJobRepository implements ExportJobRepositoryInterface
|
||||
{
|
||||
$dayAgo = Carbon::create()->subDay();
|
||||
ExportJob::where('created_at', '<', $dayAgo->format('Y-m-d H:i:s'))
|
||||
->where('status', 'never_started')
|
||||
// TODO also delete others.
|
||||
->whereIn('status', ['never_started', 'export_status_finished', 'export_downloaded'])
|
||||
->delete();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user