style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-21 22:26:28 +00:00
parent fc5a40ba40
commit 9b0c0c9889
11 changed files with 43 additions and 45 deletions

View file

@ -1,18 +1,19 @@
import { Request, Response } from 'express';
import {
createStudent,
deleteStudent, getAllStudentIds,
deleteStudent,
getAllStudentIds,
getAllStudents,
getStudent,
getStudentAssignments,
getStudentClasses,
getStudentGroups, getStudentQuestions,
getStudentGroups,
getStudentQuestions,
getStudentSubmissions,
} from '../services/students.js';
import {MISSING_FIELDS_ERROR, MISSING_USERNAME_ERROR, NAME_NOT_FOUND_ERROR} from './users.js';
import { MISSING_FIELDS_ERROR, MISSING_USERNAME_ERROR, NAME_NOT_FOUND_ERROR } from './users.js';
import { StudentDTO } from '../interfaces/student.js';
export async function getAllStudentsHandler(req: Request, res: Response): Promise<void> {
const full = req.query.full === 'true';
@ -23,7 +24,7 @@ export async function getAllStudentsHandler(req: Request, res: Response): Promis
return;
}
res.json({students});
res.json({ students });
}
export async function getStudentHandler(req: Request, res: Response): Promise<void> {
@ -152,5 +153,5 @@ export async function getStudentQuestionsHandler(req: Request, res: Response): P
res.json({
questions,
})
});
}