feat: answer routes en put question
This commit is contained in:
parent
6a1adb0ee3
commit
e8e2466b76
12 changed files with 288 additions and 62 deletions
|
@ -70,4 +70,10 @@ export class QuestionRepository extends DwengoEntityRepository<Question> {
|
|||
sequenceNumber
|
||||
});
|
||||
}
|
||||
|
||||
public async updateContent(question: Question, newContent: string): Promise<Question> {
|
||||
question.content = newContent;
|
||||
await this.save(question);
|
||||
return question;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue