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

View file

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