zf

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

commit 3b476d2f2ad48e9069f2855f2bd297193b02b8fb
parent f16b3c6d12a644a855d2d62b2538269612b09a26
Author: srfsh <dev@srf.sh>
Date:   Mon, 22 Aug 2022 19:32:06 +0300

Zenflows.GQL.MW.Sign: reflect person api changes

Diffstat:
Msrc/zenflows/gql/mw/sign.ex | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zenflows/gql/mw/sign.ex b/src/zenflows/gql/mw/sign.ex @@ -29,7 +29,7 @@ alias Zenflows.VF.Person def call(res, _opts) do if res.context.authenticate_calls? do with %{gql_user: user, gql_sign: sign, gql_body: body} <- res.context, - per when not is_nil(per) <- Person.Domain.by_user(user), + per when not is_nil(per) <- Person.Domain.one(user: user), true <- Restroom.verify_graphql?(body, sign, per.eddsa_public_key) do put_in(res.context[:req_user], per) else _ ->