style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-04-17 17:08:18 +00:00
parent 205a4addad
commit 7f782915b6
12 changed files with 30 additions and 32 deletions

View file

@ -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);
}

View file

@ -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>;
}

View file

@ -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);
}

View file

@ -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>;
}