diff --git a/src/graphql/query/chats-load.ts b/src/graphql/query/chats-load.ts index 343742eb..c5b87093 100644 --- a/src/graphql/query/chats-load.ts +++ b/src/graphql/query/chats-load.ts @@ -6,22 +6,16 @@ export default gql` error chats { id + admins + users + unread + description + updatedAt messages { id body author } - admins { - slug - name - } - users { - slug - name - } - unread - description - updatedAt } } } diff --git a/src/utils/apiClient.ts b/src/utils/apiClient.ts index 280552d2..9c061e67 100644 --- a/src/utils/apiClient.ts +++ b/src/utils/apiClient.ts @@ -272,8 +272,8 @@ export const apiClient = { // inbox getChats: async (options: QueryLoadChatsArgs) => { const resp = await privateGraphQLClient.query(myChats, options).toPromise() - console.debug('[getChats]', resp) - return resp.data.myChats + console.debug('[loadChats]', resp) + return resp.data.loadChats }, createChat: async (options: MutationCreateChatArgs) => {