style: fix linting issues met Prettier
This commit is contained in:
parent
d65bdd4fb4
commit
fe1a6b7eea
8 changed files with 14 additions and 11 deletions
|
@ -64,7 +64,6 @@ export async function getAssignmentsSubmissionsHandler(req: Request<AssignmentPa
|
|||
const assignmentNumber = +req.params.id;
|
||||
const full = req.query.full === 'true';
|
||||
|
||||
|
||||
if (isNaN(assignmentNumber)) {
|
||||
res.status(400).json({ error: 'Assignment id must be a number' });
|
||||
return;
|
||||
|
|
|
@ -39,7 +39,7 @@ export async function createSubmissionHandler(req: Request, res: Response) {
|
|||
res.status(400).json({ error: 'Failed to create submission' });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
res.json(submission);
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ export async function createTeacherHandler(req: Request, res: Response) {
|
|||
const newUser = await createTeacher(userData);
|
||||
|
||||
if (!newUser) {
|
||||
res.status(400).json({ error: "Failed to create teacher" });
|
||||
res.status(400).json({ error: 'Failed to create teacher' });
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue