fix: gefaalde testen gefixt voor group controller
This commit is contained in:
parent
943dd04e97
commit
bede00df81
2 changed files with 7 additions and 3 deletions
|
@ -21,6 +21,10 @@ export async function getGroupHandler(req: Request, res: Response): Promise<void
|
|||
|
||||
const group = await getGroup(classId, assignmentId, groupId, full);
|
||||
|
||||
if (!group) {
|
||||
res.status(404).json({ error: 'Group not found' });
|
||||
}
|
||||
|
||||
res.json(group);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue