Update BackupStats.php

This commit is contained in:
Bozhidar 2024-05-10 16:06:16 +03:00
parent bc322f7084
commit 1cf0804f81

View file

@ -28,12 +28,6 @@ class BackupStats extends BaseWidget
{
$stats = Cache::remember('backup-stats', 300, function () {
$findBackups = Backup::select(['id'])->where('status', 'processing')->get();
if ($findBackups->count() > 0) {
foreach ($findBackups as $backup) {
$backup->checkBackup();
}
}
$usedSpace = 0;
$backupPath = BackupStorage::getPath();
if (is_dir($backupPath)) {