feat: endpoint voor alle groepen van een assignment geimplementeerd
This commit is contained in:
parent
3f62ab70e1
commit
7e051d412a
4 changed files with 62 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue