fix: return attributes from hotel router

This commit is contained in:
Chuma McPhoy
2024-07-08 12:53:12 +02:00
parent 753a379694
commit 57b424819a
2 changed files with 2 additions and 4 deletions

View File

@@ -15,9 +15,7 @@ export default async function HotelPage({ lang }: LangParams) {
return null
}
const {
data: { attributes },
} = await serverClient().hotel.getHotel({
const attributes = await serverClient().hotel.getHotel({
hotelId: hotelPageIdentifierData.hotel_page_id,
language: lang,
})

View File

@@ -47,6 +47,6 @@ export const hotelQueryRouter = router({
throw badRequestError()
}
return validatedHotelData.data
return validatedHotelData.data.data.attributes
}),
})