Solved a bug where the speaking and interactive speaking were not being correctly evaluated

This commit is contained in:
Tiago Ribeiro
2024-03-23 15:43:25 +00:00
parent 38c0c823e1
commit 13ebb9bbd8
9 changed files with 23 additions and 8 deletions

View File

@@ -57,6 +57,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
missing: 0,
total: 100,
},
isDisabled: false,
},
{merge: true},
);

View File

@@ -38,11 +38,13 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
console.log("🌱 - Process complete");
const correspondingStat = (await getDoc(doc(db, "stats", fields.id))).data() as Stat;
const solutions = correspondingStat.solutions.map((x) => ({
...x,
evaluation: backendRequest.data,
solution: snapshot.metadata.fullPath,
}));
await setDoc(
doc(db, "stats", fields.id),
{
@@ -52,6 +54,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
total: 100,
missing: 0,
},
isDisabled: false,
},
{merge: true},
);

View File

@@ -40,6 +40,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
total: 100,
missing: 0,
},
isDisabled: false,
},
{merge: true},
);