fix(backend): Verdere door de aanpassingen veroorzaakte compilatiefouten opgelost
This commit is contained in:
parent
f9b83bc4af
commit
b1df95da63
7 changed files with 46 additions and 15 deletions
|
@ -2,6 +2,7 @@ import { Question } from '../entities/questions/question.entity.js';
|
|||
import { mapToStudentDTO } from './student.js';
|
||||
import { QuestionDTO, QuestionId } from '@dwengo-1/common/interfaces/question';
|
||||
import { LearningObjectIdentifier } from '@dwengo-1/common/interfaces/learning-content';
|
||||
import {mapToGroupDTO} from "./group";
|
||||
|
||||
function getLearningObjectIdentifier(question: Question): LearningObjectIdentifier {
|
||||
return {
|
||||
|
@ -21,6 +22,7 @@ export function mapToQuestionDTO(question: Question): QuestionDTO {
|
|||
learningObjectIdentifier,
|
||||
sequenceNumber: question.sequenceNumber!,
|
||||
author: mapToStudentDTO(question.author),
|
||||
inGroup: mapToGroupDTO(question.inGroup),
|
||||
timestamp: question.timestamp.toISOString(),
|
||||
content: question.content,
|
||||
};
|
||||
|
@ -31,6 +33,7 @@ export function mapToQuestionDTOId(question: Question): QuestionId {
|
|||
|
||||
return {
|
||||
learningObjectIdentifier,
|
||||
inGroup: mapToGroupDTO(question.inGroup),
|
||||
sequenceNumber: question.sequenceNumber!,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue