fix(schedule_preset): added a param to orderBy to sort shifts by start_date as well as week_day

This commit is contained in:
Matthieu Haineault 2025-12-12 14:53:56 -05:00
parent 6f3acde71b
commit b01506f013

View File

@ -18,7 +18,7 @@ export class SchedulePresetsGetService {
orderBy: [{ is_default: 'desc' }, { name: 'asc' }], orderBy: [{ is_default: 'desc' }, { name: 'asc' }],
include: { include: {
shifts: { shifts: {
orderBy: [{ week_day: 'asc', start_time: 'asc' }], orderBy: [{ week_day: 'asc' }, { start_time: 'asc' }],
include: { bank_code: { select: { type: true } } }, include: { bank_code: { select: { type: true } } },
}, },
}, },