fix: import errors van gabe gefixt, teacher en student abstractie weggedaan

This commit is contained in:
Adriaan Jacquet 2025-03-13 18:44:41 +01:00
parent 6404335040
commit b5390258e3
36 changed files with 9754 additions and 180 deletions

View file

@ -1,11 +1,13 @@
import { Question } from '../entities/questions/question.entity.js';
import {UserDTO} from "./user.js";
import {LearningObjectIdentifier} from "../entities/content/learning-object-identifier.js";
import { mapToStudentDTO, StudentDTO } from './student.js';
import { TeacherDTO } from './teacher.js';
export interface QuestionDTO {
learningObjectIdentifier: LearningObjectIdentifier;
sequenceNumber?: number;
author: UserDTO;
author: StudentDTO;
timestamp?: string;
content: string;
}
@ -23,7 +25,7 @@ export function mapToQuestionDTO(question: Question): QuestionDTO {
return {
learningObjectIdentifier,
sequenceNumber: question.sequenceNumber!,
author: question.author,
author: mapToStudentDTO(question.author),
timestamp: question.timestamp.toISOString(),
content: question.content,
};