refactor(SW-303): refactoring

This commit is contained in:
Matilda Landström
2024-09-10 13:17:01 +02:00
parent 6049fb4a1d
commit f3a455926e
3 changed files with 14 additions and 16 deletions

View File

@@ -56,7 +56,7 @@ const availabilityFailCounter = meter.createCounter(
"trpc.hotel.availability-fail"
)
async function getContenstackData(
async function getContentstackData(
locale: string,
uid: string | null | undefined
) {
@@ -90,7 +90,7 @@ export const hotelQueryRouter = router({
.query(async ({ ctx, input }) => {
const { lang, uid } = ctx
const { include } = input
const contentstackData = await getContenstackData(lang, uid)
const contentstackData = await getContentstackData(lang, uid)
const hotelId = contentstackData?.hotel_page_id
if (!hotelId) {