fix: @entity(...) decorator gefixt in backend/src/entities

This commit is contained in:
Adriaan Jacquet 2025-03-05 15:48:35 +01:00
parent 7a8673f66e
commit 55387066f0
12 changed files with 24 additions and 12 deletions

View file

@ -1,8 +1,9 @@
import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Language } from '../content/language.js';
import { Student } from '../users/student.entity.js';
import { QuestionRepository } from '../../data/questions/question-repository.js';
@Entity()
@Entity({ repository: () => QuestionRepository })
export class Question {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;