fix(SW-946) renamde query

This commit is contained in:
Pontus Dreij
2024-11-21 14:26:37 +01:00
parent f725c46dcf
commit 87c12f6709
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
} }
) )

View File

@@ -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