diff --git a/app/Console/Commands/CalculateSpace.php b/app/Console/Commands/CalculateSpace.php index d434d37..cf97c83 100644 --- a/app/Console/Commands/CalculateSpace.php +++ b/app/Console/Commands/CalculateSpace.php @@ -57,6 +57,7 @@ class CalculateSpace extends Command $end = $day." ".$i.":59:59"; $sql = "SELECT SUM(size) AS size FROM images WHERE gallery = ".$gallery->id." AND uploaded_at < \"".$start."\" AND (deleted_at > \"".$end."\" OR deleted_at IS NULL);"; $size = DB::select($sql)[0]->size; + $this->info("Size: ".$size); $split = explode("-", $day); $storage = \App\Models\Storage::query() ->where("gallery", "=", $gallery->id)