commit 72ca4adc995ca8621d04f42a51685ecd022a91ee
parent 789b7baf34e6f874a73ce58828ce4b4d7d15a5ce
Author: srfsh <dev@srf.sh>
Date: Tue, 25 Oct 2022 18:16:39 +0300
Zenflows.VF.Person: fix a logic error
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/zenflows/vf/person/domain.ex b/src/zenflows/vf/person/domain.ex
@@ -51,7 +51,7 @@ end
@spec exists?(Keyword.t()) :: boolean()
def exists?(conds) do
- where(Person, ^conds) |> Repo.exists?()
+ where(Person, ^conds) |> where(type: :per) |> Repo.exists?()
end
@spec pubkey(Keyword.t()) :: {:ok, String.t()} | {:error, String.t()}