👔 feat: add banner priority ordering logic
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m48s

This commit is contained in:
2026-03-02 23:07:30 +07:00
parent 6ffa087e91
commit 01ad69a4b0
5 changed files with 37 additions and 0 deletions

View File

@ -12,6 +12,14 @@ export const findAllActiveHeroBannerRepository = async () => {
gte: new Date(),
},
},
orderBy: [
{
orderPriority: "asc",
},
{
startDate: "asc",
},
],
});
} catch (error) {
throw new AppError(500, "Failed to fetch active hero banners", error);