From a47ee28ca591674277a9f00fe152ba339598ada9 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 28 Sep 2023 14:45:42 +0100 Subject: [PATCH] Updated the backend to work --- src/pages/api/exam/[module]/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/exam/[module]/index.ts b/src/pages/api/exam/[module]/index.ts index 162f6700..820cab53 100644 --- a/src/pages/api/exam/[module]/index.ts +++ b/src/pages/api/exam/[module]/index.ts @@ -21,7 +21,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { const {module, avoidRepeated} = req.query as {module: string; avoidRepeated: string}; const moduleRef = collection(db, module); - const q = query(moduleRef, where("isDiagnostic", "==", true)); + const q = query(moduleRef, where("isDiagnostic", "==", false)); const snapshot = await getDocs(q); const exams: Exam[] = shuffle(