aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-27 19:40:40 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-28 18:04:24 +0100
commitfb749e8befb2dcdc266c2e8b7ef7c9001947143a (patch)
tree80ae62cd0a699d4feb14fe2a239b4fe317a400a0 /src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts
parentab81df7f3d317281a05caec18e2cfd89dc26bc7a (diff)
test(services): add tests for posts fetchers
Diffstat (limited to 'src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts')
-rw-r--r--src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts b/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts
index d5ed174..161a50e 100644
--- a/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts
+++ b/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts
@@ -1,10 +1,8 @@
import type { GraphQLPageInfo, Nullable } from '../../../../types';
import { fetchGraphQL, getGraphQLUrl } from '../../../../utils/helpers';
-type LastPostCursorResponse = {
- posts: Nullable<{
- pageInfo: Pick<GraphQLPageInfo, 'endCursor'>;
- }>;
+export type LastPostCursorResponse = {
+ posts: Nullable<Record<'pageInfo', Pick<GraphQLPageInfo, 'endCursor'>>>;
};
const lastPostCursorQuery = `query LastPostCursor($first: Int) {