diff --git a/backend/src/controllers/assignments.ts b/backend/src/controllers/assignments.ts index 7ad14955..b26a89ea 100644 --- a/backend/src/controllers/assignments.ts +++ b/backend/src/controllers/assignments.ts @@ -73,10 +73,9 @@ export async function deleteAssignmentHandler(req: Request, res: Response): Prom const assignment = await deleteAssignment(classid, assignmentNumber); - res.json({ assignment }); + res.json({ assignment }); } - export async function getAssignmentsSubmissionsHandler(req: Request, res: Response): Promise { const { classid, assignmentNumber, full } = getAssignmentParams(req); diff --git a/backend/src/data/questions/question-repository.ts b/backend/src/data/questions/question-repository.ts index d06a711f..598cfb35 100644 --- a/backend/src/data/questions/question-repository.ts +++ b/backend/src/data/questions/question-repository.ts @@ -79,7 +79,7 @@ export class QuestionRepository extends DwengoEntityRepository { return this.findAll({ where: { inGroup }, orderBy: { timestamp: 'DESC' }, - }) + }); } /**