style: fix linting issues met Prettier
This commit is contained in:
parent
7da52284e6
commit
bb2eacdc4c
19 changed files with 26 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue