mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2026-01-02 19:17:22 +01:00
Fixed graph order
Explicit ordering by time was showing the results the wrong way around
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user