Added any to error to prevent an error
This commit is contained in:
@@ -48,7 +48,7 @@ async function GET(req: NextApiRequest, res: NextApiResponse) {
|
||||
const assignmentList = [...assigners.flat(), ...idsList];
|
||||
const assignments = await getAssignmentsByAssigners(assignmentList);
|
||||
res.status(200).json(assignments);
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
res.status(500).json({ error: err.message });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user