feat: endpoint voor alle groepen van een assignment geimplementeerd

This commit is contained in:
Adriaan Jacquet 2025-03-09 13:39:53 +01:00
parent 3f62ab70e1
commit 7e051d412a
4 changed files with 62 additions and 13 deletions

View file

@ -18,7 +18,11 @@ export class GroupRepository extends DwengoEntityRepository<Group> {
public findAllGroupsForAssignment(
assignment: Assignment
): Promise<Group[]> {
return this.findAll({ where: { assignment: assignment } });
return this.findAll({
where: { assignment: assignment },
populate: ["members"]
},
);
}
public deleteByAssignmentAndGroupNumber(
assignment: Assignment,