style: fix linting issues met Prettier
This commit is contained in:
parent
e78849f568
commit
400a955850
40 changed files with 321 additions and 700 deletions
|
@ -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'] });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue