Skip to content

Commit 04ea197

Browse files
authored
[Bug] Fixed charts query not ordering by latest (alexjustesen#1198)
1 parent 703c865 commit 04ea197

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

app/Filament/Widgets/RecentJitterChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51+
->latest()
5152
->get();
5253

5354
return [

app/Filament/Widgets/RecentPingChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51+
->latest()
5152
->get();
5253

5354
return [

app/Filament/Widgets/RecentSpeedChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51+
->latest()
5152
->get();
5253

5354
return [

0 commit comments

Comments
 (0)