fix: change bad JSON.stringify:s
This commit is contained in:
@@ -19,14 +19,15 @@ export const hotelPageQueryRouter = router({
|
||||
uid,
|
||||
})
|
||||
if (!response.data) {
|
||||
const notFoundError = notFound(response)
|
||||
console.error(
|
||||
"contentstack.hotelPage not found error",
|
||||
JSON.stringify({
|
||||
query: { lang, uid },
|
||||
error: response,
|
||||
error: { code: notFoundError.code },
|
||||
})
|
||||
)
|
||||
throw notFound(response)
|
||||
throw notFoundError
|
||||
}
|
||||
|
||||
const validatedHotelPage = validateHotelPageSchema.safeParse(response.data)
|
||||
|
||||
Reference in New Issue
Block a user