refactor: Cleanup
This commit is contained in:
parent
4bf82b09fa
commit
413220c54f
9 changed files with 53 additions and 34 deletions
|
@ -80,7 +80,7 @@ export async function getGroupSubmissionsHandler(req: Request, res: Response): P
|
|||
return;
|
||||
}
|
||||
|
||||
const groupId = Number(req.params.groupid!); // Can't be undefined
|
||||
const groupId = Number(req.params.groupid); // Can't be undefined
|
||||
|
||||
if (isNaN(groupId)) {
|
||||
res.status(400).json({ error: 'Group id must be a number' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue