fix(backend): Falende testen gerepareerd.
This commit is contained in:
parent
3c3a1d89c6
commit
fc675710b4
7 changed files with 34 additions and 14 deletions
|
@ -2,7 +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";
|
||||
import { mapToGroupDTOId } from "./group";
|
||||
|
||||
function getLearningObjectIdentifier(question: Question): LearningObjectIdentifier {
|
||||
return {
|
||||
|
@ -22,7 +22,7 @@ export function mapToQuestionDTO(question: Question): QuestionDTO {
|
|||
learningObjectIdentifier,
|
||||
sequenceNumber: question.sequenceNumber!,
|
||||
author: mapToStudentDTO(question.author),
|
||||
inGroup: mapToGroupDTO(question.inGroup),
|
||||
inGroup: mapToGroupDTOId(question.inGroup),
|
||||
timestamp: question.timestamp.toISOString(),
|
||||
content: question.content,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue