summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/triggers.js4
-rw-r--r--server/rulesHelper.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/models/triggers.js b/models/triggers.js
index e4e5ac46..083c860e 100644
--- a/models/triggers.js
+++ b/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;
}
});
diff --git a/server/rulesHelper.js b/server/rulesHelper.js
index 4af6c08c..1ce8db5e 100644
--- a/server/rulesHelper.js
+++ b/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);
}