style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-13 17:45:32 +00:00
parent e78849f568
commit 400a955850
40 changed files with 321 additions and 700 deletions

View file

@ -5,10 +5,7 @@ import { Teacher } from '../../entities/users/teacher.entity';
export class ClassRepository extends DwengoEntityRepository<Class> {
public findById(id: string): Promise<Class | null> {
return this.findOne(
{ classId: id },
{ populate: ['students', 'teachers'] }
);
return this.findOne({ classId: id }, { populate: ['students', 'teachers'] });
}
public deleteById(id: string): Promise<void> {
return this.deleteWhere({ classId: id });
@ -21,9 +18,6 @@ export class ClassRepository extends DwengoEntityRepository<Class> {
}
public findByTeacher(teacher: Teacher): Promise<Class[]> {
return this.find(
{ teachers: teacher },
{ populate: ['students', 'teachers'] }
);
return this.find({ teachers: teacher }, { populate: ['students', 'teachers'] });
}
}