From ead5202af29c871b6348254cd30c80521936800c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lobo?= Date: Tue, 6 Feb 2024 12:14:15 +0000 Subject: [PATCH] fix: golds not seeing visitors --- lib/safira/accounts/accounts.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/safira/accounts/accounts.ex b/lib/safira/accounts/accounts.ex index 626fa6d8..69da1320 100644 --- a/lib/safira/accounts/accounts.ex +++ b/lib/safira/accounts/accounts.ex @@ -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