diff --git a/backend/src/controllers/assignments.ts b/backend/src/controllers/assignments.ts index b26a89ea..740e3faf 100644 --- a/backend/src/controllers/assignments.ts +++ b/backend/src/controllers/assignments.ts @@ -14,7 +14,7 @@ import { BadRequestException } from '../exceptions/bad-request-exception.js'; import { Assignment } from '../entities/assignments/assignment.entity.js'; import { EntityDTO } from '@mikro-orm/core'; -function getAssignmentParams(req: Request) { +function getAssignmentParams(req: Request): { classid: string, assignmentNumber: number, full: boolean } { const classid = req.params.classid; const assignmentNumber = Number(req.params.id); const full = req.query.full === 'true'; diff --git a/backend/src/controllers/groups.ts b/backend/src/controllers/groups.ts index ac9f2cf9..9030422d 100644 --- a/backend/src/controllers/groups.ts +++ b/backend/src/controllers/groups.ts @@ -84,7 +84,7 @@ export async function createGroupHandler(req: Request, res: Response): Promise { const assignment = await fetchAssignment(classid, assignmentNumber); - console.log(assignment); - const questionRepository = getQuestionRepository(); const questions = await questionRepository.findAllByAssignment(assignment);