From bae4213184076cec8558b9583547a6bdb78eab47 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 29 Apr 2024 18:13:59 +0300 Subject: [PATCH] Update RunBackup.php --- web/app/Console/Commands/RunBackup.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/Console/Commands/RunBackup.php b/web/app/Console/Commands/RunBackup.php index 04f19d1..3aff532 100644 --- a/web/app/Console/Commands/RunBackup.php +++ b/web/app/Console/Commands/RunBackup.php @@ -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) {