mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 13:23:04 +01:00
Fixed graph order
Explicit ordering by time was showing the results the wrong way around
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,3 +10,5 @@ Homestead.json
|
|||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
|
||||||
|
.vscode/
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class SpeedtestController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data = Speedtest::where('created_at', '>=', Carbon::now()->subDays($days))
|
$data = Speedtest::where('created_at', '>=', Carbon::now()->subDays($days))
|
||||||
->orderBy('created_at', 'desc')
|
->orderBy('created_at', 'asc')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
|
|||||||
Reference in New Issue
Block a user