fix: Vragen stellen

This commit is contained in:
Gerald Schmittinger 2025-05-20 13:44:45 +02:00
parent 85221b4cfe
commit 762131ed34
4 changed files with 6 additions and 11 deletions

View file

@ -18,8 +18,8 @@ export class QuestionRepository extends DwengoEntityRepository<Question> {
content: question.content,
timestamp: new Date(),
});
console.log(questionEntity)
await this.save(questionEntity, { preventOverwrite: true });
// Don't check for overwrite since this is impossible anyway due to autoincrement.
await this.save(questionEntity, { preventOverwrite: false });
return questionEntity;
}
public async findAllQuestionsAboutLearningObject(loId: LearningObjectIdentifier): Promise<Question[]> {