👔 feat: add banner priority ordering logic
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m48s
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m48s
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user