feat(SW-187): Added tertiary links data

This commit is contained in:
Pontus Dreij
2024-09-05 10:16:55 +02:00
parent 144ab30bc6
commit 05ee4d1717
9 changed files with 93 additions and 20 deletions
+6 -4
View File
@@ -510,7 +510,7 @@ export const baseQueryRouter = router({
},
}
)
console.log("responseRef", responseRef)
// There's currently no error handling/validation for the responseRef, should it be added?
getFooterCounter.add(1, { lang: input.lang })
console.info(
@@ -590,9 +590,10 @@ export const baseQueryRouter = router({
})
)
console.log(
"secondaryLinks data",
JSON.stringify(secondaryLinks, null, 4)
console.log("secondaryLinks", JSON.stringify(secondaryLinks))
const tertiaryLinks = transformPageConnectionLinks(
validatedFooterData.tertiary_links
)
return {
@@ -600,6 +601,7 @@ export const baseQueryRouter = router({
appDownloads: validatedFooterData.app_downloads,
secondaryLinks: secondaryLinks,
socialMedia: validatedFooterData.social_media,
tertiaryLinks: tertiaryLinks,
}
}),
})