From b1b83dae05291a683859ec87f1b4c112d5d299ca Mon Sep 17 00:00:00 2001 From: hz Date: Thu, 23 Jul 2026 15:25:06 -0500 Subject: [PATCH] Fix dynamic mastery first-attempt upsert --- api/QuestionsApi/Services/DynamicQuestionStore.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/QuestionsApi/Services/DynamicQuestionStore.cs b/api/QuestionsApi/Services/DynamicQuestionStore.cs index cc4dd3b..42499f6 100644 --- a/api/QuestionsApi/Services/DynamicQuestionStore.cs +++ b/api/QuestionsApi/Services/DynamicQuestionStore.cs @@ -79,8 +79,6 @@ public sealed class DynamicQuestionStore var update = Builders.Update .SetOnInsert(value => value.UserId, claims.UserId) .SetOnInsert(value => value.ObjectiveId, claims.ObjectiveId) - .SetOnInsert(value => value.Attempts, 0) - .SetOnInsert(value => value.Correct, 0) .Set(value => value.Elo, oldElo + delta) .Inc(value => value.Attempts, 1) .Inc(value => value.Correct, isCorrect ? 1 : 0)