fix(backend): Fouten in isTransitionPossible en het opzetten van de testdata verbeterd.
This commit is contained in:
parent
b539c28d8c
commit
fc46e79d05
10 changed files with 249 additions and 68 deletions
|
@ -36,5 +36,6 @@ export function isTransitionPossible(transition: LearningPathTransition, submitt
|
|||
if (submitted === null) {
|
||||
return false; // If the transition is not unconditional and there was no submission, the transition is not possible.
|
||||
}
|
||||
return JSONPath({ path: transition.condition, json: submitted }).length === 0;
|
||||
const match = JSONPath({ path: transition.condition, json: {submission: submitted} })
|
||||
return match.length === 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue