Updated the demographic input to work more as expected
This commit is contained in:
@@ -16,9 +16,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
return;
|
||||
}
|
||||
|
||||
const {module} = req.query as {module: string};
|
||||
const {module, avoidRepeated} = req.query as {module: string; avoidRepeated: string};
|
||||
const moduleRef = collection(db, module);
|
||||
const q = query(moduleRef, where("isDiagnostic", "==", false));
|
||||
const q = query(moduleRef, where("isDiagnostic", "==", true));
|
||||
|
||||
const snapshot = await getDocs(q);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user