This commit is contained in:
Igor Lobanov 2022-10-05 14:32:23 +02:00
parent 9a78c859ae
commit 32bbedfa17
2 changed files with 13 additions and 0 deletions

View File

@ -344,6 +344,7 @@ export type Query = {
getUsersBySlugs: Array<Maybe<User>> getUsersBySlugs: Array<Maybe<User>>
isEmailUsed: Scalars['Boolean'] isEmailUsed: Scalars['Boolean']
loadChat: Array<Maybe<Message>> loadChat: Array<Maybe<Message>>
markdownBody: Scalars['String']
myChats: Array<Maybe<ChatResult>> myChats: Array<Maybe<ChatResult>>
reactionsByAuthor: Array<Maybe<Reaction>> reactionsByAuthor: Array<Maybe<Reaction>>
reactionsByShout: Array<Maybe<Reaction>> reactionsByShout: Array<Maybe<Reaction>>
@ -411,6 +412,10 @@ export type QueryLoadChatArgs = {
size: Scalars['Int'] size: Scalars['Int']
} }
export type QueryMarkdownBodyArgs = {
body: Scalars['String']
}
export type QueryReactionsByAuthorArgs = { export type QueryReactionsByAuthorArgs = {
limit: Scalars['Int'] limit: Scalars['Int']
offset: Scalars['Int'] offset: Scalars['Int']

View File

@ -176,6 +176,10 @@ export const apiClient = {
}) })
.toPromise() .toPromise()
if (response.error) {
log.error('getArticlesForTopics', response.error)
}
return response.data.shoutsByTopics return response.data.shoutsByTopics
}, },
getArticlesForAuthors: async ({ getArticlesForAuthors: async ({
@ -195,6 +199,10 @@ export const apiClient = {
}) })
.toPromise() .toPromise()
if (response.error) {
log.error('getArticlesForAuthors', response.error)
}
return response.data.shoutsByAuthors return response.data.shoutsByAuthors
}, },