diff --git a/server/routers/contentstack/loyaltyPage/query.ts b/server/routers/contentstack/loyaltyPage/query.ts index 97d7209ca..2f0dc3d44 100644 --- a/server/routers/contentstack/loyaltyPage/query.ts +++ b/server/routers/contentstack/loyaltyPage/query.ts @@ -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 diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index 70b8363ed..a18c9bc71 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -106,6 +106,8 @@ export const hotelQueryRouter = router({ return validatedRoom.data }) : [] + + getHotelSuccessCounter.add(1, { hotelId, language, include }) console.info( "api.hotels.hotel success", JSON.stringify({