fix: linkage failed with current date variable (#2272)
* fix: linkage failed with current date variable * fix: linkage failed with current date variable
This commit is contained in:
parent
a57b4a8359
commit
d36b9e366a
@ -122,7 +122,8 @@ function getAllKeys(obj) {
|
||||
return keys;
|
||||
}
|
||||
|
||||
export const conditionAnalyse = (rules, values) => {
|
||||
export const conditionAnalyse = (rules, scope) => {
|
||||
const values = { ...scope, now: new Date() };
|
||||
const type = Object.keys(rules)[0] || '$and';
|
||||
const conditions = rules[type];
|
||||
const results = conditions.map((c) => {
|
||||
|
Loading…
Reference in New Issue
Block a user