Explorar o código

fix: stat charts

tokumeikoi %!s(int64=4) %!d(string=hai) anos
pai
achega
34be1b9579
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/StatController.php

+ 1 - 1
app/Http/Controllers/Admin/StatController.php

@@ -54,7 +54,7 @@ class StatController extends Controller
     {
     {
         $statistics = StatOrder::where('record_type', 'd')
         $statistics = StatOrder::where('record_type', 'd')
             ->limit(31)
             ->limit(31)
-            ->orderBy('record_at', 'ASC')
+            ->orderBy('record_at', 'DESC')
             ->get()
             ->get()
             ->toArray();
             ->toArray();
         $result = [];
         $result = [];