From 510bca3666a9848a2c2c28aec302fa514ea77864 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Fri, 15 Jan 2021 23:09:11 +0100 Subject: [PATCH] Stuff --- app/Console/Commands/CalculateSpace.php | 1 + 1 file changed, 1 insertion(+) 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)