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,10 +4,20 @@ import { Teacher } from '../users/teacher.entity';
@Entity()
export class Answer {
@ManyToOne({ entity: () => {return Teacher}, primary: true })
@ManyToOne({
entity: () => {
return Teacher;
},
primary: true,
})
author!: Teacher;
@ManyToOne({ entity: () => {return Question}, primary: true })
@ManyToOne({
entity: () => {
return Question;
},
primary: true,
})
toQuestion!: Question;
@PrimaryKey({ type: 'integer' })

View file

@ -7,7 +7,12 @@ export class Question {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;
@Enum({ items: () => {return Language}, primary: true })
@Enum({
items: () => {
return Language;
},
primary: true,
})
learningObjectLanguage!: Language;
@PrimaryKey({ type: 'string' })
@ -16,7 +21,11 @@ export class Question {
@PrimaryKey({ type: 'integer' })
sequenceNumber!: number;
@ManyToOne({ entity: () => {return Student} })
@ManyToOne({
entity: () => {
return Student;
},
})
author!: Student;
@Property({ type: 'datetime' })