fix(backend): Kleinere fouten opgelost.

This commit is contained in:
Gerald Schmittinger 2025-03-13 21:35:55 +01:00
parent 6e7a03f55b
commit f199ceb945
3 changed files with 4 additions and 5 deletions

View file

@ -59,7 +59,7 @@ export async function createGroupHandler(req: Request, res: Response): Promise<v
}
const groupData = req.body as GroupDTO;
const group = createGroup(groupData, classid, assignmentId);
const group = await createGroup(groupData, classid, assignmentId);
if (!group) {
res.status(500).json({ error: 'Something went wrong while creating group' });