Updated the Writing exercise to have the evaluation in the user solutions instead of the exercise itself

This commit is contained in:
Tiago Ribeiro
2023-06-23 10:28:33 +01:00
parent 9cbb5b93c8
commit b2cc706a5e
5 changed files with 44 additions and 38 deletions

View File

@@ -40,6 +40,8 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
return;
}
console.log("HERE");
const stats = req.body as Stat[];
await stats.forEach(async (stat) => await addDoc(collection(db, "stats"), stat));