feat: include all images

This commit is contained in:
Kailasdevdas
2026-06-29 16:26:38 +05:30
parent 99601f9f0d
commit 3c40b29bff
2 changed files with 12 additions and 9 deletions
@@ -409,7 +409,10 @@ export const getFeaturedFacilities = async (req, res) => {
name: fac.name,
slug: fac.slug,
shortDescription: fac.shortDescription,
image: fac.images[0]?.url ?? '',
images: fac.images.map((img) => ({
id: img.id,
url: img.url,
})),
departmentName: fac.department?.name ?? '',
}));