Added the same functionality to the Assignments
This commit is contained in:
@@ -86,7 +86,7 @@ const generateExams = async (
|
||||
}
|
||||
|
||||
const selectedModulePromises = selectedModules.map(async (module: Module) => {
|
||||
const exams: Exam[] = await getExams(db, module, "false", undefined);
|
||||
const exams: Exam[] = await getExams(db, module, "false", undefined, variant, instructorGender);
|
||||
const exam = exams[getRandomIndex(exams)];
|
||||
|
||||
if (exam) {
|
||||
@@ -133,6 +133,7 @@ async function POST(req: NextApiRequest, res: NextApiResponse) {
|
||||
assignees,
|
||||
results: [],
|
||||
exams,
|
||||
instructorGender,
|
||||
...body,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user