refactor(SW-360): improve error handling logic

This commit is contained in:
Chuma McPhoy
2024-10-02 17:37:14 +02:00
parent e1d6dd9282
commit 5bdef742c7
3 changed files with 14 additions and 15 deletions

View File

@@ -21,6 +21,8 @@ export const contentPageQueryRouter = router({
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
const { lang, uid } = ctx
// TODO: Add logic to: check if Authed & Content Page URL is a "signup page", if so, redirect to home page.
const contentPageRefsData = await fetchContentPageRefs(lang, uid)
const contentPageRefs = validateContentPageRefs(
contentPageRefsData,