From 32bbedfa1751a0fe87335c4466cadbdeffe113f8 Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Wed, 5 Oct 2022 14:32:23 +0200 Subject: [PATCH] WIP --- src/graphql/types.gen.ts | 5 +++++ src/utils/apiClient.ts | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts index a2b73043..8c85b2f2 100644 --- a/src/graphql/types.gen.ts +++ b/src/graphql/types.gen.ts @@ -344,6 +344,7 @@ export type Query = { getUsersBySlugs: Array> isEmailUsed: Scalars['Boolean'] loadChat: Array> + markdownBody: Scalars['String'] myChats: Array> reactionsByAuthor: Array> reactionsByShout: Array> @@ -411,6 +412,10 @@ export type QueryLoadChatArgs = { size: Scalars['Int'] } +export type QueryMarkdownBodyArgs = { + body: Scalars['String'] +} + export type QueryReactionsByAuthorArgs = { limit: Scalars['Int'] offset: Scalars['Int'] diff --git a/src/utils/apiClient.ts b/src/utils/apiClient.ts index 4cf7ef76..4cd6c3ce 100644 --- a/src/utils/apiClient.ts +++ b/src/utils/apiClient.ts @@ -176,6 +176,10 @@ export const apiClient = { }) .toPromise() + if (response.error) { + log.error('getArticlesForTopics', response.error) + } + return response.data.shoutsByTopics }, getArticlesForAuthors: async ({ @@ -195,6 +199,10 @@ export const apiClient = { }) .toPromise() + if (response.error) { + log.error('getArticlesForAuthors', response.error) + } + return response.data.shoutsByAuthors },