feat: group verbinding tussen databank en api aangemaakt
This commit is contained in:
parent
baf43e91de
commit
3f62ab70e1
6 changed files with 104 additions and 24 deletions
|
@ -7,10 +7,13 @@ export class GroupRepository extends DwengoEntityRepository<Group> {
|
|||
assignment: Assignment,
|
||||
groupNumber: number
|
||||
): Promise<Group | null> {
|
||||
return this.findOne({
|
||||
return this.findOne(
|
||||
{
|
||||
assignment: assignment,
|
||||
groupNumber: groupNumber,
|
||||
});
|
||||
},
|
||||
{ populate: ["members"] },
|
||||
);
|
||||
}
|
||||
public findAllGroupsForAssignment(
|
||||
assignment: Assignment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue