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' import { gql } from '@urql/core'
export default gql` export default gql`
query AuthorssAllQuery($limit: Int!, $offset: Int!) { query AuthorssAllQuery {
authorsAll(limit: $limit, offset: $offset) { authorsAll {
_id: slug _id: slug
slug slug
name name

View File

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