feat(SW-201): Refactoring how we fetch hotel page data

This commit is contained in:
Erik Tiekstra
2024-11-18 14:55:24 +01:00
parent 75c811eb32
commit ca2f60253f
7 changed files with 99 additions and 200 deletions

View File

@@ -115,7 +115,7 @@ export async function getDescription(data: RawMetadataSchema) {
return ""
}
export function getImages(data: RawMetadataSchema) {
export function getImage(data: RawMetadataSchema) {
const metadataImage = data.web?.seo_metadata?.seo_image
const heroImage = data.hero_image