Pass entity array into validators instead of changes object

This commit is contained in:
Quincy Morgan
2019-01-24 15:26:19 -05:00
parent a259a9acf1
commit ffe4aa09f4
12 changed files with 38 additions and 45 deletions
+2 -2
View File
@@ -293,11 +293,11 @@ export function coreHistory(context) {
},
validate: function(changes) {
validate: function(entitiesToCheck) {
return _flatten(_map(
validations,
function(fn) {
return fn(context)(changes, _stack[_index].graph, _tree);
return fn(context)(entitiesToCheck, _stack[_index].graph, _tree);
}
));
},