From ebd884e654c45373dc56a03730a4ce670887ce8b Mon Sep 17 00:00:00 2001 From: Angelo Gallarello Date: Sun, 7 Oct 2018 17:27:26 +0200 Subject: Fixed lint errors --- models/checklistItems.js | 8 ++++---- models/wekanCreator.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'models') 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]; -- cgit v1.2.3-1-g7c22 From 58855ada97677d25475ba4721834c0f576ed3b47 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 8 Oct 2018 00:44:02 +0300 Subject: - Fix lint errors and warnings. Thanks to xet7 ! --- models/checklistItems.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'models') diff --git a/models/checklistItems.js b/models/checklistItems.js index 519630ae..c85c0260 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){ +function publishChekListCompleted(userId, doc){ const card = Cards.findOne(doc.cardId); const boardId = card.boardId; const checklistId = doc.checklistId; @@ -130,13 +130,13 @@ function publishChekListCompleted(userId, doc, fieldNames){ cardId: doc.cardId, boardId, checklistId: doc.checklistId, - checklistName:checkList.title, + checklistName: checkList.title, }; Activities.insert(act); } } -function publishChekListUncompleted(userId, doc, fieldNames){ +function publishChekListUncompleted(userId, doc){ const card = Cards.findOne(doc.cardId); const boardId = card.boardId; const checklistId = doc.checklistId; @@ -148,7 +148,7 @@ function publishChekListUncompleted(userId, doc, fieldNames){ cardId: doc.cardId, boardId, checklistId: doc.checklistId, - checklistName:checkList.title, + checklistName: checkList.title, }; Activities.insert(act); } @@ -160,12 +160,12 @@ if (Meteor.isServer) { ChecklistItems._collection._ensureIndex({ checklistId: 1 }); }); - ChecklistItems.after.update((userId, doc, fieldNames, modifier) => { + ChecklistItems.after.update((userId, doc, fieldNames) => { publishCheckActivity(userId, doc); publishChekListCompleted(userId, doc, fieldNames); }); - ChecklistItems.before.update((userId, doc, fieldNames, modifier) => { + ChecklistItems.before.update((userId, doc, fieldNames) => { publishChekListUncompleted(userId, doc, fieldNames); }); -- cgit v1.2.3-1-g7c22