diff --git a/epictrack-api/src/api/services/work_phase.py b/epictrack-api/src/api/services/work_phase.py index 9edf55a51..227f8b750 100644 --- a/epictrack-api/src/api/services/work_phase.py +++ b/epictrack-api/src/api/services/work_phase.py @@ -37,7 +37,7 @@ def find_by_work_id(cls, work_id: int): db.session.query(WorkPhase) .join(PhaseCode, WorkPhase.phase_id == PhaseCode.id) .filter(WorkPhase.work_id == work_id, WorkPhase.is_active.is_(True)) - .order_by(PhaseCode.id) + .order_by(WorkPhase.id) .all() ) return work_phases