summaryrefslogtreecommitdiffstats
path: root/server/rulesHelper.js
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 23:37:29 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 23:37:29 +0200
commit2f24dcfc7d2f1b426e83459ed5328529a440955d (patch)
treea54bccef26dfe20d924e9d4b4e103978f0c2f563 /server/rulesHelper.js
parentfda4e954eb7202b4c1ed0d30812e3b9156dfd5c9 (diff)
downloadwekan-2f24dcfc7d2f1b426e83459ed5328529a440955d.tar.gz
wekan-2f24dcfc7d2f1b426e83459ed5328529a440955d.tar.bz2
wekan-2f24dcfc7d2f1b426e83459ed5328529a440955d.zip
Progress on triggers UI
Diffstat (limited to 'server/rulesHelper.js')
-rw-r--r--server/rulesHelper.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/rulesHelper.js b/server/rulesHelper.js
index 4c2a1ef1..1a00688e 100644
--- a/server/rulesHelper.js
+++ b/server/rulesHelper.js
@@ -1,6 +1,4 @@
RulesHelper = {
-
-
executeRules(activity){
const matchingRules = this.findMatchingRules(activity);
console.log(matchingRules);
@@ -33,7 +31,7 @@ RulesHelper = {
return matchingRules;
},
buildMatchingFieldsMap(activity, matchingFields){
- let matchingMap = {};
+ let matchingMap = {"activityType":activity.activityType};
for(let i = 0;i< matchingFields.length;i++){
// Creating a matching map with the actual field of the activity
// and with the wildcard (for example: trigger when a card is added