refactor(SW-360): improve error handling logic
This commit is contained in:
committed by
Pontus Dreij
parent
fe198b5fc5
commit
8583306b3c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user