fix: integratie user + errors gefixt zodat het runt + format

This commit is contained in:
Gabriellvl 2025-03-09 23:59:31 +01:00
parent 6c4ea0eefb
commit 1b096b411b
55 changed files with 858 additions and 594 deletions

View file

@ -1,4 +1,4 @@
import { Class } from "../entities/classes/class.entity.js";
import { Class } from '../entities/classes/class.entity.js';
export interface ClassDTO {
id: string;
@ -18,8 +18,12 @@ export function mapToClassDTO(cls: Class): ClassDTO {
return {
id: cls.classId,
displayName: cls.displayName,
teachers: cls.teachers.map(teacher => teacher.username),
students: cls.students.map(student => student.username),
teachers: cls.teachers.map((teacher) => {
return teacher.username;
}),
students: cls.students.map((student) => {
return student.username;
}),
joinRequests: [], // TODO
}
};
};
}