From cae7c158e95b934dd8c9aceef32fc8f30ae102f0 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Tue, 12 Jan 2021 17:58:01 +0100 Subject: [PATCH] Stuff --- app/Http/Controllers/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 5ceb9db..1105f0f 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -16,7 +16,7 @@ class DashboardController extends BaseController public function dashboardView() { $currentSize = DB::select("SELECT SUM(size) AS `size` FROM images LEFT JOIN galleries ON images.gallery = galleries.id WHERE galleries.tenant = 1;")[0]->size; - $currentTraffic = DB::select("SELECT SUM(size) AS size FROM `go-mysql-admin`.access WHERE tenant = 1 AND created_at >= NOW() - INTERVAL 1 DAY;")[0]->size; + $currentTraffic = DB::select("SELECT SUM(size) AS size FROM access WHERE tenant = 1 AND created_at >= NOW() - INTERVAL 1 DAY;")[0]->size; $monthlyTraffic = DB::select("SELECT SUM(traffic) AS `traffic` FROM traffic WHERE `year` = 2021 AND `month` = 1 and tenant = 1;")[0]->traffic; $lastDaysTreffic = Traffic::getLastDays(7); $lastDaysSize = Storage::getLastDays(7);