diff --git a/lib/trpc/memoizedRequests/index.ts b/lib/trpc/memoizedRequests/index.ts index 2a97f791c..75e58765f 100644 --- a/lib/trpc/memoizedRequests/index.ts +++ b/lib/trpc/memoizedRequests/index.ts @@ -161,6 +161,6 @@ export const getBookingConfirmation = cache( export const getCityCoordinates = cache( async function getMemoizedCityCoordinates(input: { city: string }) { - return serverClient().hotel.map.get(input) + return serverClient().hotel.map.city(input) } ) diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index e45ced06f..73f617fc4 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -1080,7 +1080,7 @@ export const hotelQueryRouter = router({ }), }), map: router({ - get: serviceProcedure + city: serviceProcedure .input(getCityCoordinatesInputSchema) .query(async function ({ input }) { const apiKey = process.env.GOOGLE_STATIC_MAP_KEY