Update RunBackup.php

This commit is contained in:
Bozhidar 2024-04-29 18:13:59 +03:00
parent 39a4a76183
commit bae4213184

View file

@ -37,7 +37,10 @@ class RunBackup extends Command
} }
$findBackupsToday = Backup::where('created_at', '>=', Carbon::now()->subHours(24)) $findBackupsToday = Backup::where('created_at', '>=', Carbon::now()->subHours(24))
->where('status', 'completed') ->where(function ($query) {
$query->where('status', 'completed')
->orWhere('status', 'processing');
})
->first(); ->first();
if (! $findBackupsToday) { if (! $findBackupsToday) {