Description
Refactor all service files to use ES Module (ESM) syntax (import / export) for consistency with the recently migrated controllers and models.
This task focuses purely on syntax modernization β no logic or functional changes will be made.
Testing and validation will be handled later under the ES6 Migration Testing Phase.
Services to Refactor
DepartmentService.js
InstructorService.js
ProgramService.js
StudentService.js
UserService.js
Objectives
- Convert
require β import
- Convert
module.exports β export / export default
- Maintain the same function names and logic
- Ensure consistent structure across all services
Notes
- π« No testing or behavioral changes in this issue
- π§© Testing will be managed under the consolidated ES6 Migration QA Task
Description
Refactor all service files to use ES Module (ESM) syntax (
import/export) for consistency with the recently migrated controllers and models.This task focuses purely on syntax modernization β no logic or functional changes will be made.
Testing and validation will be handled later under the ES6 Migration Testing Phase.
Services to Refactor
DepartmentService.jsInstructorService.jsProgramService.jsStudentService.jsUserService.jsObjectives
requireβimportmodule.exportsβexport/export defaultNotes