Updated it to work with the new canges

This commit is contained in:
Tiago Ribeiro
2024-07-23 14:43:24 +01:00
parent a1c7f70329
commit 10a3243756
3 changed files with 454 additions and 551 deletions

View File

@@ -51,7 +51,7 @@ export const evaluateSpeakingAnswer = async (
case "speaking":
return {...(await evaluateSpeakingExercise(exercise, exercise.id, solution, id, task)), id} as UserSolution;
case "interactiveSpeaking":
return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, exercise.variant)), id} as UserSolution;
return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, task === 3 ? "final" : "initial")), id} as UserSolution;
default:
return undefined;
}