From 762131ed3479ae1e776e24a6a42b9f2e751b4c28 Mon Sep 17 00:00:00 2001 From: Gerald Schmittinger Date: Tue, 20 May 2025 13:44:45 +0200 Subject: [PATCH] fix: Vragen stellen --- backend/src/data/questions/question-repository.ts | 4 ++-- frontend/src/components/QuestionBox.vue | 1 - frontend/src/queries/questions.ts | 5 +++-- frontend/src/views/learning-paths/LearningPathPage.vue | 7 +------ 4 files changed, 6 insertions(+), 11 deletions(-) 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 @@