From 48e63df303f6ff2347c9bc7f80a1bf698fbce405 Mon Sep 17 00:00:00 2001
From: Jure Triglav <juretriglav@gmail.com>
Date: Thu, 25 Jun 2020 23:35:34 +0200
Subject: [PATCH] feat: adjust user queries with additional data

---
 app/graphql/index.js | 7 +++++++
 app/queries/index.js | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/app/graphql/index.js b/app/graphql/index.js
index c831521825..b980b81b6a 100644
--- a/app/graphql/index.js
+++ b/app/graphql/index.js
@@ -1,3 +1,5 @@
+// TODO: Combine this with app/queries/index
+
 import gql from 'graphql-tag'
 
 export default {
@@ -7,6 +9,11 @@ export default {
         id
         username
         admin
+        profilePicture
+        defaultIdentity {
+          aff
+          name
+        }
       }
     }
   `,
diff --git a/app/queries/index.js b/app/queries/index.js
index 33aaf2f5a1..8aaf5dbb87 100644
--- a/app/queries/index.js
+++ b/app/queries/index.js
@@ -8,9 +8,7 @@ export const GET_CURRENT_USER = gql`
       username
       defaultIdentity {
         aff
-        name {
-          surname
-        }
+        name
         type
         ... on ExternalIdentity {
           identifier
-- 
GitLab