aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/services/graphql/blog.ts8
-rw-r--r--src/ts/types/articles.ts2
-rw-r--r--src/ts/types/blog.ts2
3 files changed, 6 insertions, 6 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));
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts
index 664e237..91703a2 100644
--- a/src/ts/types/articles.ts
+++ b/src/ts/types/articles.ts
@@ -11,7 +11,7 @@ export type ArticleDates = {
export type ArticlePreviewResponse = {
acfPosts: {
postsInSubject: SubjectPreview[] | null;
- postsInThematics: ThematicPreview[] | null;
+ postsInThematic: ThematicPreview[] | null;
};
commentCount: number | null;
contentParts: {
diff --git a/src/ts/types/blog.ts b/src/ts/types/blog.ts
index 76eaedb..32fa9b8 100644
--- a/src/ts/types/blog.ts
+++ b/src/ts/types/blog.ts
@@ -38,7 +38,7 @@ export type BlogPageProps = {
fallback: PostsList;
};
-export type AllPostsSlugReponse = {
+export type AllPostsSlugResponse = {
posts: {
nodes: ArticleSlug[];
};