Explorar el Código

fix: stat charts

tokumeikoi hace 4 años
padre
commit
34be1b9579
Se han modificado 1 ficheros con 1 adiciones y 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')
             ->limit(31)
-            ->orderBy('record_at', 'ASC')
+            ->orderBy('record_at', 'DESC')
             ->get()
             ->toArray();
         $result = [];