Browse Source

Fixed remove

Angelo Gallarello 6 years ago
parent
commit
99e7c65907
2 changed files with 6 additions and 0 deletions
  1. 4 0
      models/triggers.js
  2. 2 0
      server/rulesHelper.js

+ 4 - 0
models/triggers.js

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

+ 2 - 0
server/rulesHelper.js

@@ -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);
 		}