style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-22 12:52:47 +00:00
parent d65bdd4fb4
commit fe1a6b7eea
8 changed files with 14 additions and 11 deletions

View file

@ -60,7 +60,11 @@ export async function getAssignment(classid: string, id: number): Promise<Assign
return mapToAssignmentDTO(assignment);
}
export async function getAssignmentsSubmissions(classid: string, assignmentNumber: number, full: boolean): Promise<SubmissionDTO[] | SubmissionDTOId[]> {
export async function getAssignmentsSubmissions(
classid: string,
assignmentNumber: number,
full: boolean
): Promise<SubmissionDTO[] | SubmissionDTOId[]> {
const classRepository = getClassRepository();
const cls = await classRepository.findById(classid);

View file

@ -104,9 +104,9 @@ export async function getAllGroups(classId: string, assignmentNumber: number, fu
}
export async function getGroupSubmissions(
classId: string,
assignmentNumber: number,
groupNumber: number,
classId: string,
assignmentNumber: number,
groupNumber: number,
full: boolean
): Promise<SubmissionDTO[] | SubmissionDTOId[]> {
const classRepository = getClassRepository();

View file

@ -16,7 +16,7 @@ export async function getAllStudents(full: boolean): Promise<StudentDTO[] | stri
return students.map(mapToStudentDTO);
}
return students.map(student => student.username);
return students.map((student) => student.username);
}
export async function getStudent(username: string): Promise<StudentDTO | null> {

View file

@ -22,7 +22,7 @@ export async function getAllTeachers(full: boolean): Promise<TeacherDTO[] | stri
return teachers.map(mapToTeacherDTO);
}
return teachers.map(teacher => teacher.username);
return teachers.map((teacher) => teacher.username);
}
export async function getTeacher(username: string): Promise<TeacherDTO | null> {
@ -87,7 +87,7 @@ export async function getClassesByTeacher(username: string, full: boolean): Prom
}
export async function fetchStudentsByTeacher(username: string) {
const classes = await getClassesByTeacher(username, false) as string[];
const classes = (await getClassesByTeacher(username, false)) as string[];
return (await Promise.all(classes.map(async (id) => getClassStudents(id)))).flat();
}