fix: structure logged data
This commit is contained in:
@@ -111,6 +111,7 @@ export const loyaltyPageQueryRouter = router({
|
||||
|
||||
if (!response.data) {
|
||||
const notFoundError = notFound(response)
|
||||
|
||||
console.error(
|
||||
"contentstack.loyaltyPage not found error",
|
||||
JSON.stringify({
|
||||
@@ -118,7 +119,7 @@ export const loyaltyPageQueryRouter = router({
|
||||
error: { code: notFoundError.code },
|
||||
})
|
||||
)
|
||||
throw notFoundError
|
||||
throw notFound(response)
|
||||
}
|
||||
|
||||
const blocks = response.data.loyalty_page.blocks
|
||||
|
||||
Reference in New Issue
Block a user