all authors request fix

This commit is contained in:
Igor Lobanov 2022-10-04 11:20:02 +02:00
parent 0e8117937b
commit 434eef7795
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import { gql } from '@urql/core'
export default gql`
query AuthorssAllQuery($limit: Int!, $offset: Int!) {
authorsAll(limit: $limit, offset: $offset) {
query AuthorssAllQuery {
authorsAll {
_id: slug
slug
name

View File

@ -224,7 +224,7 @@ export const apiClient = {
},
getAllAuthors: async () => {
const response = await publicGraphQLClient.query(authorsAll, { limit: 9999, offset: 9999 }).toPromise()
const response = await publicGraphQLClient.query(authorsAll, {}).toPromise()
return response.data.authorsAll
},
getArticle: async ({ slug }: { slug: string }): Promise<Shout> => {