Fix response Update reaction

This commit is contained in:
ilya-bkv 2024-03-18 14:25:10 +03:00
parent 084bd29d2b
commit 96685507ea

View File

@ -192,7 +192,7 @@ export const apiClient = {
updateReaction: async (reaction: ReactionInput) => { updateReaction: async (reaction: ReactionInput) => {
const response = await apiClient.private.mutation(reactionUpdate, { reaction }).toPromise() const response = await apiClient.private.mutation(reactionUpdate, { reaction }).toPromise()
console.debug('[graphql.client.core] updateReaction:', response) console.debug('[graphql.client.core] updateReaction:', response)
return response.data.update_reaction.reaction return response.data.update_reaction
}, },
loadAuthorsBy: async (args: QueryLoad_Authors_ByArgs) => { loadAuthorsBy: async (args: QueryLoad_Authors_ByArgs) => {
const resp = await publicGraphQLClient.query(authorsLoadBy, args).toPromise() const resp = await publicGraphQLClient.query(authorsLoadBy, args).toPromise()