Skip to content

Commit

Permalink
Add naames to user graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Nov 5, 2023
1 parent 265e302 commit b4a5fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/graphql/types/email_user_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Types
class EmailUserType < Types::BaseObject
field :email, String
field :first_name, String, null: true, camelize: false
field :last_name, String, null: true, camelize: false
field :first_name, String, null: true
field :last_name, String, null: true

def self.authorized?(object, context)
super && context[:viewer].admin?
Expand Down

0 comments on commit b4a5fb9

Please sign in to comment.