fix(SW-946) renamde query
This commit is contained in:
@@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user