Skip to content

Commit

Permalink
Merge pull request #4474 from Roardom/mariadb-top-users
Browse files Browse the repository at this point in the history
  • Loading branch information
HDVinnie authored Feb 13, 2025
2 parents 9fb69e1 + 5e8f54f commit 7acee58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Livewire/TopUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ final public function commenters(): \Illuminate\Support\Collection
->where('user_id', '!=', User::SYSTEM_USER_ID)
->where('anon', '=', false)
->groupBy('user_id')
->orderByRaw('COALESCE(value, 0) DESC')
->orderByDesc('value')
->take(8)
->get();
}
Expand All @@ -154,7 +154,7 @@ final public function posters(): \Illuminate\Support\Collection
->select(DB::raw('user_id, COUNT(user_id) as value'))
->where('user_id', '!=', User::SYSTEM_USER_ID)
->groupBy('user_id')
->orderByRaw('COALESCE(value, 0) DESC')
->orderByDesc('value')
->take(8)
->get();
}
Expand All @@ -169,7 +169,7 @@ final public function thankers(): \Illuminate\Support\Collection
->select(DB::raw('user_id, COUNT(user_id) as value'))
->where('user_id', '!=', User::SYSTEM_USER_ID)
->groupBy('user_id')
->orderByRaw('COALESCE(value, 0) DESC')
->orderByDesc('value')
->take(8)
->get();
}
Expand Down

0 comments on commit 7acee58

Please sign in to comment.