style: fix linting issues met Prettier
This commit is contained in:
parent
205a4addad
commit
7f782915b6
12 changed files with 30 additions and 32 deletions
|
@ -16,14 +16,14 @@ export class Group {
|
|||
|
||||
@ManyToOne({
|
||||
entity: () => Assignment,
|
||||
primary: true
|
||||
primary: true,
|
||||
})
|
||||
assignment!: Assignment;
|
||||
|
||||
@ManyToMany({
|
||||
entity: () => Student,
|
||||
owner: true,
|
||||
inversedBy: "groups"
|
||||
inversedBy: 'groups',
|
||||
})
|
||||
members: Collection<Student> = new Collection<Student>(this);
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@ export class Class {
|
|||
@Property({ type: 'string' })
|
||||
displayName!: string;
|
||||
|
||||
@ManyToMany({entity: () => Teacher, owner: true, inversedBy: 'classes'})
|
||||
@ManyToMany({ entity: () => Teacher, owner: true, inversedBy: 'classes' })
|
||||
teachers!: Collection<Teacher>;
|
||||
|
||||
@ManyToMany({entity: () => Student, owner: true, inversedBy: 'classes'})
|
||||
@ManyToMany({ entity: () => Student, owner: true, inversedBy: 'classes' })
|
||||
students!: Collection<Student>;
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ import { StudentRepository } from '../../data/users/student-repository.js';
|
|||
repository: () => StudentRepository,
|
||||
})
|
||||
export class Student extends User {
|
||||
@ManyToMany({entity: () => Class, mappedBy: 'students'})
|
||||
@ManyToMany({ entity: () => Class, mappedBy: 'students' })
|
||||
classes!: Collection<Class>;
|
||||
|
||||
@ManyToMany({entity: () => Group, mappedBy: 'members'})
|
||||
@ManyToMany({ entity: () => Group, mappedBy: 'members' })
|
||||
groups: Collection<Group> = new Collection<Group>(this);
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@ import { TeacherRepository } from '../../data/users/teacher-repository.js';
|
|||
|
||||
@Entity({ repository: () => TeacherRepository })
|
||||
export class Teacher extends User {
|
||||
@ManyToMany({entity: () => Class, mappedBy: 'teachers'})
|
||||
@ManyToMany({ entity: () => Class, mappedBy: 'teachers' })
|
||||
classes!: Collection<Class>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue