From 1f7d4d8b92bddd4750f1073066d0ad6816dd27a1 Mon Sep 17 00:00:00 2001 From: Rosyid Date: Sat, 6 Apr 2024 12:22:09 +0700 Subject: [PATCH] finalize --- app/lib/services/quiz_service.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/lib/services/quiz_service.dart b/app/lib/services/quiz_service.dart index 7d30695..1f737c0 100644 --- a/app/lib/services/quiz_service.dart +++ b/app/lib/services/quiz_service.dart @@ -50,6 +50,14 @@ class QuizService { // } // check apakah user sudah registered minggu ini + // final participation = await db + // .collection('weekly_quiz_participation') + // .where('quiz_title', isEqualTo: snapshot['title']) + // .where('user_uid', isEqualTo: currentUserUID) + // .get(); + // if (participation.size > 0) { + // return; + // } try { await db.collection('weekly_quiz_participation').doc().set({