diff --git a/backend/src/controllers/students.ts b/backend/src/controllers/students.ts index 51488a2a..229cff7e 100644 --- a/backend/src/controllers/students.ts +++ b/backend/src/controllers/students.ts @@ -73,7 +73,7 @@ export async function getStudentAssignmentsHandler(req: Request, res: Response): const username = req.params.username; requireFields({ username }); - const assignments = getStudentAssignments(username, full); + const assignments = await getStudentAssignments(username, full); res.json({ assignments }); }