fix: answer.author wou niet opslaan

This commit is contained in:
Timo De Meyst 2025-04-24 17:48:31 +02:00
parent 7296fa8f18
commit 760e86788f

View file

@ -13,6 +13,9 @@ export class AnswerRepository extends DwengoEntityRepository<Answer> {
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<Answer[]> {