Update Backup.php

This commit is contained in:
Bozhidar 2024-05-01 01:37:43 +03:00
parent e90c6dca01
commit 02bfdbb1ee

View file

@ -116,7 +116,9 @@ class Backup extends Model
]; ];
} }
$this->size = Helpers::checkPathSize($this->path); shell_exec('rm -rf '.$this->path);
$this->size = filesize(Storage::disk('backups')->path($this->filepath));
$this->status = 'completed'; $this->status = 'completed';
$this->completed = true; $this->completed = true;
$this->completed_at = now(); $this->completed_at = now();