From 8a0ac687cfa021c00140a7608ed402060b8417b8 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Sat, 25 Apr 2020 19:55:59 +0800 Subject: [PATCH] update --- app/Services/ServerService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index 3992a90b..d7c9d4fc 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -141,7 +141,7 @@ class ServerService $serverLog = ServerLog::where('user_id', $userId) ->where('server_id', $serverId) ->where('created_at', '>=', strtotime(date('Y-m-d h:00:00'))) - ->orderBy('DESC', 'created_at') + ->orderBy('created_at', 'DESC') ->first(); if ($serverLog) { $serverLog->u = $serverLog->u + $u;