feat: include all images
This commit is contained in:
@@ -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 ?? '',
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user