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;