fix(schedule_preset): added a param to orderBy to sort shifts by start_date as well as week_day
This commit is contained in:
parent
6f3acde71b
commit
b01506f013
|
|
@ -18,7 +18,7 @@ export class SchedulePresetsGetService {
|
|||
orderBy: [{ is_default: 'desc' }, { name: 'asc' }],
|
||||
include: {
|
||||
shifts: {
|
||||
orderBy: [{ week_day: 'asc', start_time: 'asc' }],
|
||||
orderBy: [{ week_day: 'asc' }, { start_time: 'asc' }],
|
||||
include: { bank_code: { select: { type: true } } },
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user