fix(backend): Kleinere fouten opgelost.
This commit is contained in:
parent
6e7a03f55b
commit
f199ceb945
3 changed files with 4 additions and 5 deletions
|
@ -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' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue