diff --git a/backend/src/data/questions/question-repository.ts b/backend/src/data/questions/question-repository.ts index a07a0a94..342751f2 100644 --- a/backend/src/data/questions/question-repository.ts +++ b/backend/src/data/questions/question-repository.ts @@ -18,8 +18,8 @@ export class QuestionRepository extends DwengoEntityRepository { 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 { diff --git a/frontend/src/components/QuestionBox.vue b/frontend/src/components/QuestionBox.vue index be5ea9ae..fa9bda21 100644 --- a/frontend/src/components/QuestionBox.vue +++ b/frontend/src/components/QuestionBox.vue @@ -54,7 +54,6 @@