sort rest schedule
This commit is contained in:
@@ -41,7 +41,7 @@ export class ScheduleService {
|
||||
|
||||
async findAll(restId?: string): Promise<Schedule[]> {
|
||||
const where = restId ? { restId } : {};
|
||||
return this.scheduleRepository.find(where);
|
||||
return this.scheduleRepository.find(where, { orderBy: { weekDay: 'asc' } });
|
||||
}
|
||||
|
||||
async findOne(id: string, restId: string): Promise<Schedule> {
|
||||
|
||||
Reference in New Issue
Block a user