Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Feb 6, 2024
1 parent 165c091 commit 8ff3b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/safira/contest/contest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule Safira.Contest do
def get_badge_preload!(id) do
Repo.get!(Badge, id)
|> Repo.preload(attendees: [:user])
|> Enum.map(fn b -> Enum.filter(b.attendees, fn x -> not is_nil(x.user_id) end) end)
|> Map.update!(:attendees, fn x -> Enum.filter(x, fn x -> not is_nil(x.user_id) end) end)
end

def get_badge_description(description) do
Expand Down

0 comments on commit 8ff3b5b

Please sign in to comment.