瀏覽代碼

Fixed remove

Angelo Gallarello 7 年之前
父節點
當前提交
99e7c65907
共有 2 個文件被更改,包括 6 次插入0 次删除
  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);
 		}