summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-08 00:06:55 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-08 00:06:55 +0300
commitd91e0358f3a3f13558f8493661aa847fdbcae528 (patch)
tree628f6bcde0a34d9156bbc7c88aaa41def3be9c85 /models
parent4c6c6ffb164027c5a5f29d213be9858c23efd3bf (diff)
parent6931b88e4013754a7b03205a9916b9e607224f48 (diff)
downloadwekan-d91e0358f3a3f13558f8493661aa847fdbcae528.tar.gz
wekan-d91e0358f3a3f13558f8493661aa847fdbcae528.tar.bz2
wekan-d91e0358f3a3f13558f8493661aa847fdbcae528.zip
Merge branch 'feature-rules' of https://github.com/Angtrim/wekan into Angtrim-feature-rules
Diffstat (limited to 'models')
-rw-r--r--models/checklistItems.js8
-rw-r--r--models/wekanCreator.js6
2 files changed, 7 insertions, 7 deletions
diff --git a/models/checklistItems.js b/models/checklistItems.js
index 7132bc7c..519630ae 100644
--- a/models/checklistItems.js
+++ b/models/checklistItems.js
@@ -118,7 +118,7 @@ function publishCheckActivity(userId, doc){
Activities.insert(act);
}
-function publishChekListCompleted(userId, doc, fieldNames, modifier){
+function publishChekListCompleted(userId, doc, fieldNames){
const card = Cards.findOne(doc.cardId);
const boardId = card.boardId;
const checklistId = doc.checklistId;
@@ -136,7 +136,7 @@ function publishChekListCompleted(userId, doc, fieldNames, modifier){
}
}
-function publishChekListUncompleted(userId, doc, fieldNames, modifier){
+function publishChekListUncompleted(userId, doc, fieldNames){
const card = Cards.findOne(doc.cardId);
const boardId = card.boardId;
const checklistId = doc.checklistId;
@@ -162,11 +162,11 @@ if (Meteor.isServer) {
ChecklistItems.after.update((userId, doc, fieldNames, modifier) => {
publishCheckActivity(userId, doc);
- publishChekListCompleted(userId, doc, fieldNames, modifier);
+ publishChekListCompleted(userId, doc, fieldNames);
});
ChecklistItems.before.update((userId, doc, fieldNames, modifier) => {
- publishChekListUncompleted(userId, doc, fieldNames, modifier);
+ publishChekListUncompleted(userId, doc, fieldNames);
});
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index b018b06d..59d0cfd5 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -510,7 +510,7 @@ export class WekanCreator {
}
createTriggers(wekanTriggers, boardId) {
- wekanTriggers.forEach((trigger, ruleIndex) => {
+ wekanTriggers.forEach((trigger) => {
if (trigger.hasOwnProperty('labelId')) {
trigger.labelId = this.labels[trigger.labelId];
}
@@ -525,7 +525,7 @@ export class WekanCreator {
}
createActions(wekanActions, boardId) {
- wekanActions.forEach((action, ruleIndex) => {
+ wekanActions.forEach((action) => {
if (action.hasOwnProperty('labelId')) {
action.labelId = this.labels[action.labelId];
}
@@ -540,7 +540,7 @@ export class WekanCreator {
}
createRules(wekanRules, boardId) {
- wekanRules.forEach((rule, ruleIndex) => {
+ wekanRules.forEach((rule) => {
// Create the rule
rule.boardId = boardId;
rule.triggerId = this.triggers[rule.triggerId];