diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-10-08 00:44:02 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-10-08 00:44:02 +0300 |
commit | 58855ada97677d25475ba4721834c0f576ed3b47 (patch) | |
tree | 794fbcf7690faec54d7d90a28daef852936dd790 /models | |
parent | 5d0b23ee3f76c19a4d6a0db5ab32104ad36f2798 (diff) | |
download | wekan-58855ada97677d25475ba4721834c0f576ed3b47.tar.gz wekan-58855ada97677d25475ba4721834c0f576ed3b47.tar.bz2 wekan-58855ada97677d25475ba4721834c0f576ed3b47.zip |
- Fix lint errors and warnings.
Thanks to xet7 !
Diffstat (limited to 'models')
-rw-r--r-- | models/checklistItems.js | 12 |
1 files changed, 6 insertions, 6 deletions
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); }); |