feat: verbinding student submissions

This commit is contained in:
Adriaan Jacquet 2025-03-12 15:32:26 +01:00
parent 788ca54742
commit d8b97f3aea
4 changed files with 42 additions and 5 deletions

View file

@ -55,6 +55,14 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> {
);
}
public findAllSubmissionsForStudent(
student: Student,
): Promise<Submission[]> {
return this.find(
{ submitter: student },
);
}
public deleteSubmissionByLearningObjectAndSubmissionNumber(
loId: LearningObjectIdentifier,
submissionNumber: number