fix(SW-946) renamde query
This commit is contained in:
@@ -161,6 +161,6 @@ export const getBookingConfirmation = cache(
|
|||||||
|
|
||||||
export const getCityCoordinates = cache(
|
export const getCityCoordinates = cache(
|
||||||
async function getMemoizedCityCoordinates(input: { city: string }) {
|
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({
|
map: router({
|
||||||
get: serviceProcedure
|
city: serviceProcedure
|
||||||
.input(getCityCoordinatesInputSchema)
|
.input(getCityCoordinatesInputSchema)
|
||||||
.query(async function ({ input }) {
|
.query(async function ({ input }) {
|
||||||
const apiKey = process.env.GOOGLE_STATIC_MAP_KEY
|
const apiKey = process.env.GOOGLE_STATIC_MAP_KEY
|
||||||
|
|||||||
Reference in New Issue
Block a user