diff --git a/server/src/modules/rules/rules.service.ts b/server/src/modules/rules/rules.service.ts index f088e613..e3efc650 100644 --- a/server/src/modules/rules/rules.service.ts +++ b/server/src/modules/rules/rules.service.ts @@ -1012,7 +1012,9 @@ export class RulesService { ); //test first value - const first = firstValApplication.props[parsedRule.firstVal[1]]; + const first = firstValApplication.props.find( + (x) => x.id == parsedRule.firstVal[1], + ); result = first.cacheReset ? true : result; @@ -1021,7 +1023,9 @@ export class RulesService { : undefined; // test second value - const second = secondValApplication?.props[parsedRule.lastVal[1]]; + const second = secondValApplication?.props.find( + (x) => x.id == parsedRule.lastVal[1], + ); result = second?.cacheReset ? true : result; }