Skip to content

Commit

Permalink
fix: golds not seeing visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Feb 6, 2024
1 parent 4f10ac5 commit ead5202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/safira/accounts/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ defmodule Safira.Accounts do
)
|> Enum.map(fn x -> x.attendee |> Repo.preload(:user) end)
else
Repo.all(Attendee)
Repo.all(from a in Attendee, where: not is_nil(a.user_id))
|> Repo.preload(:user)
end
end
Expand Down

0 comments on commit ead5202

Please sign in to comment.