fix: import errors van gabe gefixt, teacher en student abstractie weggedaan

This commit is contained in:
Adriaan Jacquet 2025-03-13 18:44:41 +01:00
parent 6404335040
commit b5390258e3
36 changed files with 9754 additions and 180 deletions

View file

@ -23,10 +23,11 @@ export function mapToStudentDTO(student: Student): StudentDTO {
}
export function mapToStudent(studentData: StudentDTO): Student {
const student = new Student();
student.username = studentData.username;
student.firstName = studentData.firstName;
student.lastName = studentData.lastName;
const student = new Student(
studentData.username,
studentData.firstName,
studentData.lastName,
);
return student;
}