From fbdece57532a22e07213ea23de821bae232442d4 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Sun, 5 Nov 2023 17:27:09 +1100 Subject: [PATCH] Fix unikey case --- app/graphql/types/query_type.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb index 0698b3ef..7ac76f85 100644 --- a/app/graphql/types/query_type.rb +++ b/app/graphql/types/query_type.rb @@ -89,11 +89,11 @@ def essence(full_identifier:, filename:) item.essences.find_by(filename:) end - field :user_by_uni_key, EmailUserType, 'Find a user by their unikey' do + field :user_by_unikey, EmailUserType, 'Find a user by their unikey' do argument :unikey, String end - def user_by_uni_key(unikey:) + def user_by_unikey(unikey:) User.find_by(unikey:) end