sort rest schedule

This commit is contained in:
2025-11-22 11:26:16 +03:30
parent 2ea6b819e2
commit 0711e56a7e
@@ -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> {