From 834db89c9e6effdc479a1404217195e39eba6a64 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 4 May 2026 11:49:04 +0200 Subject: [PATCH] ignore double submissions --- api/src/workflows/quiz.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/workflows/quiz.ts b/api/src/workflows/quiz.ts index 5230542..c529f8a 100644 --- a/api/src/workflows/quiz.ts +++ b/api/src/workflows/quiz.ts @@ -101,7 +101,9 @@ export class QuizWorkflow extends ConfiguredInstance { } } break; - } + } + + if (receivedPlayers.has(response.playerId)) continue; receivedPlayers.add(response.playerId); const answeredAt = Date.now();