hotfix/payload-banner #28

Merged
vivy-agent merged 2 commits from hotfix/payload-banner into main 2026-03-25 17:57:49 +07:00
Showing only changes of commit dd70f9f9d4 - Show all commits

View File

@ -20,6 +20,25 @@ export const findAllActiveHeroBannerRepository = async () => {
startDate: "asc", startDate: "asc",
}, },
], ],
select: {
orderPriority: true,
imageUrl: true,
media: {
select: {
id: true,
title: true,
slug: true,
pictureLarge: true,
synopsis: true,
genres: {
select: {
slug: true,
name: true,
},
},
},
},
},
}); });
} catch (error) { } catch (error) {
throw new AppError(500, "Failed to fetch active hero banners", error); throw new AppError(500, "Failed to fetch active hero banners", error);