fix(backend): Services en controllers aan gewijzigde primaire sleutel van Question en Submission aangepast.

This commit is contained in:
Gerald Schmittinger 2025-04-06 23:36:23 +02:00
parent 12c1505ba7
commit f9b83bc4af
6 changed files with 12 additions and 6 deletions

View file

@ -2,6 +2,7 @@ import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Student } from '../users/student.entity.js';
import { QuestionRepository } from '../../data/questions/question-repository.js';
import { Language } from '@dwengo-1/common/util/language';
import {Group} from "../assignments/group.entity";
@Entity({ repository: () => QuestionRepository })
export class Question {
@ -21,7 +22,7 @@ export class Question {
sequenceNumber?: number;
@ManyToOne({ entity: () => Group, primary: true })
inGroup: Group;
inGroup!: Group;
@ManyToOne({
entity: () => Student,