diff --git a/backend/src/data/questions/answer-repository.ts b/backend/src/data/questions/answer-repository.ts index ba5cf796..ae59a56c 100644 --- a/backend/src/data/questions/answer-repository.ts +++ b/backend/src/data/questions/answer-repository.ts @@ -13,6 +13,9 @@ export class AnswerRepository extends DwengoEntityRepository { timestamp: new Date(), }); await this.insert(answerEntity); + answerEntity.toQuestion = answer.toQuestion; + answerEntity.author = answer.author; + answerEntity.content = answer.content; return answerEntity; } public async findAllAnswersToQuestion(question: Question): Promise {