aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/blog.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql/blog.ts')
-rw-r--r--src/services/graphql/blog.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/services/graphql/blog.ts b/src/services/graphql/blog.ts
index 127eb1e..6b92b5a 100644
--- a/src/services/graphql/blog.ts
+++ b/src/services/graphql/blog.ts
@@ -1,6 +1,6 @@
import { ArticlePreview } from '@ts/types/articles';
import {
- AllPostsSlugReponse,
+ AllPostsSlugResponse,
FetchAllPostsSlugReturn,
FetchPostsListReturn,
GetPostsListReturn,
@@ -111,8 +111,8 @@ export const getPublishedPosts: GetPostsListReturn = async ({
? acfPosts.postsInSubject
: [];
const thematics =
- acfPosts.postsInThematics && acfPosts.postsInThematics?.length > 0
- ? acfPosts.postsInThematics
+ acfPosts.postsInThematic && acfPosts.postsInThematic?.length > 0
+ ? acfPosts.postsInThematic
: [];
return {
@@ -146,7 +146,7 @@ export const fetchAllPostsSlug: FetchAllPostsSlugReturn = async () => {
`;
try {
- const response: AllPostsSlugReponse = await client.request(query);
+ const response: AllPostsSlugResponse = await client.request(query);
return response.posts.nodes;
} catch (error) {
console.error(JSON.stringify(error, undefined, 2));