mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update RunBackup.php
This commit is contained in:
parent
39a4a76183
commit
bae4213184
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ class RunBackup extends Command
|
|||
}
|
||||
|
||||
$findBackupsToday = Backup::where('created_at', '>=', Carbon::now()->subHours(24))
|
||||
->where('status', 'completed')
|
||||
->where(function ($query) {
|
||||
$query->where('status', 'completed')
|
||||
->orWhere('status', 'processing');
|
||||
})
|
||||
->first();
|
||||
|
||||
if (! $findBackupsToday) {
|
||||
|
|
Loading…
Reference in a new issue