Fixed remove

This commit is contained in:
Angelo Gallarello 2018-08-16 00:42:14 +02:00
parent 6828ccd7f1
commit 99e7c65907
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,10 @@ Triggers.allow({
insert: function () {
// add custom authentication code here
return true;
},
remove: function () {
// add custom authentication code here
return true;
}
});

View file

@ -3,7 +3,9 @@ RulesHelper = {
executeRules(activity){
const matchingRules = this.findMatchingRules(activity);
console.log(matchingRules);
for(let i = 0;i< matchingRules.length;i++){
console.log(matchingRules[i]);
const actionType = matchingRules[i].getAction().actionType;
this.performAction(activity,actionType);
}