Added an option to release automatically

This commit is contained in:
Joao Ramos
2024-09-02 23:56:51 +01:00
parent 4bb80919ad
commit aca8ad2d14
2 changed files with 7 additions and 1 deletions

View File

@@ -122,6 +122,7 @@ async function POST(req: NextApiRequest, res: NextApiResponse) {
endDate: string;
variant?: Variant;
instructorGender?: InstructorGender;
released: boolean;
};
const exams: ExamWithUser[] = !!examIDs
@@ -139,7 +140,6 @@ async function POST(req: NextApiRequest, res: NextApiResponse) {
results: [],
exams,
instructorGender,
released: false,
...body,
});