fix(SW-159): renamed route to get instead of getHotel and changed getHotelId to function declaration

This commit is contained in:
Erik Tiekstra
2024-08-22 09:48:18 +02:00
parent 7fd2fd7ec6
commit 1803e8e1fb

View File

@@ -38,7 +38,7 @@ const getHotelCounter = meter.createCounter("trpc.hotel.get")
const getHotelSuccessCounter = meter.createCounter("trpc.hotel.get-success")
const getHotelFailCounter = meter.createCounter("trpc.hotel.get-fail")
const getHotelId = async (locale: string, uid: string | null | undefined) => {
async function getHotelId(locale: string, uid: string | null | undefined) {
const rawContentStackData = await request<HotelPageDataRaw>(GetHotelPage, {
locale,
uid,