Skip to content

Commit

Permalink
Filter users without units
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinesco committed Jul 23, 2024
1 parent 87c1199 commit eade004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/game_backend/lib/game_backend/users.ex
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ defmodule GameBackend.Users do
def get_users_sorted_by_total_unit_prestige() do
q =
from(user in User,
left_join: unit in Unit,
join: unit in Unit,
on: user.id == unit.user_id,
select: %{username: user.username, prestige: sum(unit.prestige)},
group_by: user.id,
Expand Down

0 comments on commit eade004

Please sign in to comment.