style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-15 19:01:10 +00:00
parent 7da52284e6
commit bb2eacdc4c
19 changed files with 26 additions and 26 deletions

View file

@ -100,13 +100,9 @@ export async function getStudentsByTeacher(username: string, full: boolean): Pro
const classIds: string[] = classes.map((cls) => cls.id);
const students: StudentDTO[] = (await Promise.all(
classIds.map(async (classId) => await getClassStudentsDTO(classId))
))
const students: StudentDTO[] = (await Promise.all(classIds.map(async (classId) => await getClassStudentsDTO(classId))))
.flat()
.filter((student, index, self) =>
self.findIndex((s) => s.username === student.username) === index
);
.filter((student, index, self) => self.findIndex((s) => s.username === student.username) === index);
if (full) {
return students;