Fixed graph order

Explicit ordering by time was showing the results the wrong way around
This commit is contained in:
Henry Whitaker
2020-04-21 23:41:09 +01:00
parent cfa6dc43ca
commit 8035d51bf5
2 changed files with 3 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class SpeedtestController extends Controller
}
$data = Speedtest::where('created_at', '>=', Carbon::now()->subDays($days))
->orderBy('created_at', 'desc')
->orderBy('created_at', 'asc')
->get();
return response()->json([