From b8ff05f70afd12f47eea3d09275568b6292961ad Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Wed, 2 Nov 2022 16:51:57 +0300 Subject: [PATCH] fix-query --- src/graphql/query/im-chats.ts | 2 +- src/graphql/query/im-load-messages.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/graphql/query/im-chats.ts b/src/graphql/query/im-chats.ts index 993da387..a87f7b34 100644 --- a/src/graphql/query/im-chats.ts +++ b/src/graphql/query/im-chats.ts @@ -13,7 +13,7 @@ export default gql` users { slug name - pic + userpic } title createdAt diff --git a/src/graphql/query/im-load-messages.ts b/src/graphql/query/im-load-messages.ts index 0e2be8f7..d9ae1404 100644 --- a/src/graphql/query/im-load-messages.ts +++ b/src/graphql/query/im-load-messages.ts @@ -3,11 +3,11 @@ import { gql } from '@urql/core' export default gql` query LoadMessagesQuery($chatId: String!, $offset: Int, $amount: Int) { loadChat(chatId: $chatId, offset: $offset, amount: $amount) { - id - title - desc - slug - amount + author + body + createdAt + updatedAt + seen } } `