Added dynamic generation of exams as an option

This commit is contained in:
Joao Ramos
2023-12-07 23:07:35 +00:00
parent f48885bba6
commit 0049ab272b
3 changed files with 82 additions and 31 deletions

View File

@@ -18,7 +18,7 @@ export const getExams = async (
// added userId as due to assignments being set from the teacher to the student
// we need to make sure we are serving exams not executed by the user and not
// by the teacher that performed the request
userId: string
userId: string | undefined
): Promise<Exam[]> => {
const moduleRef = collection(db, module);