fix(backend): Fouten in de testen resulterend uit de aanpassingen opgelost.
This commit is contained in:
parent
7b79348985
commit
03fa7c7b14
4 changed files with 80 additions and 13 deletions
|
@ -42,11 +42,21 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> {
|
|||
}
|
||||
|
||||
public async findAllSubmissionsForGroup(group: Group): Promise<Submission[]> {
|
||||
return this.find({ onBehalfOf: group });
|
||||
return this.find(
|
||||
{ onBehalfOf: group },
|
||||
{
|
||||
populate: ["onBehalfOf.members"]
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public async findAllSubmissionsForStudent(student: Student): Promise<Submission[]> {
|
||||
return this.find({ submitter: student });
|
||||
return this.find(
|
||||
{ submitter: student },
|
||||
{
|
||||
populate: ["onBehalfOf.members"]
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public async deleteSubmissionByLearningObjectAndSubmissionNumber(loId: LearningObjectIdentifier, submissionNumber: number): Promise<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue