feat(SW-187): Added tertiary links data

This commit is contained in:
Pontus Dreij
2024-09-05 10:16:55 +02:00
parent c033f776b6
commit 2a59ad431b
9 changed files with 94 additions and 29 deletions

View File

@@ -351,7 +351,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(
@@ -431,9 +431,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 {
@@ -441,6 +442,7 @@ export const baseQueryRouter = router({
appDownloads: validatedFooterData.app_downloads,
secondaryLinks: secondaryLinks,
socialMedia: validatedFooterData.social_media,
tertiaryLinks: tertiaryLinks,
}
}),
})