fix: integratie user + errors gefixt zodat het runt + format
This commit is contained in:
parent
6c4ea0eefb
commit
1b096b411b
55 changed files with 858 additions and 594 deletions
|
@ -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
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue