Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-09-04 11:59:35 +02:00
parent 4849068e4a
commit 51b801f743
2 changed files with 11 additions and 0 deletions
@@ -222,6 +222,12 @@ export class JsonRulesEngineFactChecker
this.retrieveIndividualFactReferences(con),
),
);
} else if ('not' in condition) {
results = results.concat(
this.retrieveIndividualFactReferences(condition.not),
);
} else if ('condition' in condition) {
// ignore the ConditionReference type
} else {
results.push(condition.fact);
}