Skip to content

Commit

Permalink
[Bug] Fixed chart order by (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Feb 21, 2024
1 parent 3122ef8 commit a560d37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Filament/Widgets/RecentJitterChartWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function getData(): array
->when($this->filter == 'month', function ($query) {
$query->where('created_at', '>=', now()->subMonth());
})
->latest()
->orderBy('created_at')
->get();

return [
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Widgets/RecentPingChartWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function getData(): array
->when($this->filter == 'month', function ($query) {
$query->where('created_at', '>=', now()->subMonth());
})
->latest()
->orderBy('created_at')
->get();

return [
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Widgets/RecentSpeedChartWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function getData(): array
->when($this->filter == 'month', function ($query) {
$query->where('created_at', '>=', now()->subMonth());
})
->latest()
->orderBy('created_at')
->get();

return [
Expand Down

0 comments on commit a560d37

Please sign in to comment.