chore: overbodige lijnen samengevoegd

Co-authored-by: Tibo De Peuter <tibo.depeuter@ugent.be>
This commit is contained in:
Timo De Meyst 2025-04-24 21:52:50 +02:00 committed by GitHub
parent c314a5cf80
commit fb016e8d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,7 @@ export class QuestionRepository extends DwengoEntityRepository<Question> {
questionEntity.author = question.author;
questionEntity.inGroup = question.inGroup;
questionEntity.content = question.content;
await this.insert(questionEntity);
return questionEntity;
return (await this.insert(questionEntity));
}
public async findAllQuestionsAboutLearningObject(loId: LearningObjectIdentifier): Promise<Question[]> {
return this.findAll({