fix: answer.author wou niet opslaan
This commit is contained in:
parent
7296fa8f18
commit
760e86788f
1 changed files with 3 additions and 0 deletions
|
@ -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[]> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue