style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-01 10:33:30 +00:00
parent 74765577d5
commit 17893a6990
53 changed files with 1350 additions and 1314 deletions

View file

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

View file

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

View file

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