style: fix linting issues met ESLint

This commit is contained in:
Lint Action 2025-03-01 10:33:27 +00:00
parent 81bbe84dfd
commit 74765577d5
26 changed files with 73 additions and 73 deletions

View file

@ -4,13 +4,13 @@ import { Class } from './class.entity';
@Entity()
export class ClassJoinRequest {
@ManyToOne({ entity: () => Student, primary: true })
@ManyToOne({ entity: () => {return Student}, primary: true })
requester!: Student;
@ManyToOne({ entity: () => Class, primary: true })
@ManyToOne({ entity: () => {return Class}, primary: true })
class!: Class;
@Enum(() => ClassJoinRequestStatus)
@Enum(() => {return ClassJoinRequestStatus})
status!: ClassJoinRequestStatus;
}

View file

@ -17,9 +17,9 @@ export class Class {
@Property({ type: 'string' })
displayName!: string;
@ManyToMany(() => Teacher)
@ManyToMany(() => {return Teacher})
teachers!: Collection<Teacher>;
@ManyToMany(() => Student)
@ManyToMany(() => {return Student})
students!: Collection<Student>;
}

View file

@ -7,12 +7,12 @@ import { Class } from './class.entity.js';
*/
@Entity()
export class TeacherInvitation {
@ManyToOne({ entity: () => Teacher, primary: true })
@ManyToOne({ entity: () => {return Teacher}, primary: true })
sender!: Teacher;
@ManyToOne({ entity: () => Teacher, primary: true })
@ManyToOne({ entity: () => {return Teacher}, primary: true })
receiver!: Teacher;
@ManyToOne({ entity: () => Class, primary: true })
@ManyToOne({ entity: () => {return Class}, primary: true })
class!: Class;
}