feat(SW-251): use response to render filters
This commit is contained in:
@@ -28,7 +28,7 @@ import {
|
||||
import {
|
||||
getAvailabilityInputSchema,
|
||||
getHotelInputSchema,
|
||||
getPlaceholderInputSchema,
|
||||
getlHotelDataInputSchema,
|
||||
getRatesInputSchema,
|
||||
} from "./input"
|
||||
import {
|
||||
@@ -55,10 +55,6 @@ const availabilityFailCounter = meter.createCounter(
|
||||
"trpc.hotel.availability-fail"
|
||||
)
|
||||
|
||||
const filterCounter = meter.createCounter("trcp.hotel.filter")
|
||||
const filterSuccessCounter = meter.createCounter("trcp.hotel.filter-success")
|
||||
const filterFailCounter = meter.createCounter("trcp.hotel.filter-fail")
|
||||
|
||||
async function getContentstackData(
|
||||
locale: string,
|
||||
uid: string | null | undefined
|
||||
@@ -421,9 +417,9 @@ export const hotelQueryRouter = router({
|
||||
return validatedHotelData.data
|
||||
}),
|
||||
}),
|
||||
hotel: router({
|
||||
hotelData: router({
|
||||
get: serviceProcedure
|
||||
.input(getPlaceholderInputSchema)
|
||||
.input(getlHotelDataInputSchema)
|
||||
.query(async ({ ctx, input }) => {
|
||||
const { hotelId, language, include } = input
|
||||
|
||||
|
||||
Reference in New Issue
Block a user