zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0ad29a1a505707940e20bb9dc978705d215d0de4
parent 86a961ae55d65e2a9a2907a9b70e4dabe6d0a207
Author: srfsh <dev@srf.sh>
Date:   Tue, 25 Oct 2022 18:54:32 +0300

Zenflows.VF.Person.{Type,Resolv}: rename :person_exists to :person_check and improve @desc

Diffstat:
Msrc/zenflows/vf/person/resolv.ex | 2+-
Msrc/zenflows/vf/person/type.ex | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/zenflows/vf/person/resolv.ex b/src/zenflows/vf/person/resolv.ex @@ -28,7 +28,7 @@ def people(params, _) do Domain.all(params) end -def person_exists(params, _) do +def person_check(params, _) do Domain.one(params) end diff --git a/src/zenflows/vf/person/type.ex b/src/zenflows/vf/person/type.ex @@ -180,12 +180,12 @@ object :query_person do resolve &Resolv.people/2 end - @desc "Find if a person exists by email and eddsa-public-key." - field :person_exists, non_null(:person) do + @desc "If exists, find a person by email and eddsa-public-key." + field :person_check, non_null(:person) do meta only_guest?: true arg :email, non_null(:string) arg :eddsa_public_key, non_null(:string) - resolve &Resolv.person_exists/2 + resolve &Resolv.person_check/2 end @desc "Retrieve a person from the email (if a person with that email exists)"