aboutsummaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/graphql/articles.ts4
-rw-r--r--src/services/graphql/thematics.ts2
-rw-r--r--src/services/graphql/topics.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/services/graphql/articles.ts b/src/services/graphql/articles.ts
index f0ba4e4..27406ac 100644
--- a/src/services/graphql/articles.ts
+++ b/src/services/graphql/articles.ts
@@ -82,10 +82,10 @@ export const getArticleFromRawData = (data: RawArticle): Article => {
title: seo?.title || '',
},
thematics: acfPosts.postsInThematic?.map((thematic) =>
- getPageLinkFromRawData(thematic)
+ getPageLinkFromRawData(thematic, 'thematic')
),
topics: acfPosts.postsInTopic?.map((topic) =>
- getPageLinkFromRawData(topic)
+ getPageLinkFromRawData(topic, 'topic')
),
wordsCount: info.wordsCount,
},
diff --git a/src/services/graphql/thematics.ts b/src/services/graphql/thematics.ts
index fd9d9f5..4dc69e7 100644
--- a/src/services/graphql/thematics.ts
+++ b/src/services/graphql/thematics.ts
@@ -79,7 +79,7 @@ export const getThematicFromRawData = (data: RawThematic): Thematic => {
posts.forEach((post) => {
if (post.acfPosts.postsInTopic) {
post.acfPosts.postsInTopic.forEach((topic) =>
- topics.push(getPageLinkFromRawData(topic))
+ topics.push(getPageLinkFromRawData(topic, 'topic'))
);
}
});
diff --git a/src/services/graphql/topics.ts b/src/services/graphql/topics.ts
index 277580f..0b1971b 100644
--- a/src/services/graphql/topics.ts
+++ b/src/services/graphql/topics.ts
@@ -80,7 +80,7 @@ export const getTopicFromRawData = (data: RawTopic): Topic => {
posts.forEach((post) => {
if (post.acfPosts.postsInThematic) {
post.acfPosts.postsInThematic.forEach((thematic) =>
- thematics.push(getPageLinkFromRawData(thematic))
+ thematics.push(getPageLinkFromRawData(thematic, 'thematic'))
);
}
});