From 434eef779541679ffc65f09a6daa394cfc46a164 Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Tue, 4 Oct 2022 11:20:02 +0200 Subject: [PATCH] all authors request fix --- src/graphql/query/authors-all.ts | 4 ++-- src/utils/apiClient.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphql/query/authors-all.ts b/src/graphql/query/authors-all.ts index c1c4e00b..bbaeac55 100644 --- a/src/graphql/query/authors-all.ts +++ b/src/graphql/query/authors-all.ts @@ -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 diff --git a/src/utils/apiClient.ts b/src/utils/apiClient.ts index 54d5c7e3..60a670ef 100644 --- a/src/utils/apiClient.ts +++ b/src/utils/apiClient.ts @@ -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 => {