diff options
-rw-r--r-- | client/components/rules/triggers/boardTriggers.js | 14 | ||||
-rw-r--r-- | models/cards.js | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/client/components/rules/triggers/boardTriggers.js b/client/components/rules/triggers/boardTriggers.js index 562d84a9..40c5b07e 100644 --- a/client/components/rules/triggers/boardTriggers.js +++ b/client/components/rules/triggers/boardTriggers.js @@ -81,13 +81,13 @@ BlazeComponent.extendComponent({ const desc = Utils.getTriggerActionDesc(event, this); const boardId = Session.get('currentBoard'); - datas.triggerVar.set({ - activityType: 'moveCard', - boardId, - 'listName':'*', - 'oldListName': '*', - desc, - }); + datas.triggerVar.set({ + activityType: 'moveCard', + boardId, + 'listName':'*', + 'oldListName': '*', + desc, + }); }, 'click .js-add-arc-trigger' (event) { const datas = this.data(); diff --git a/models/cards.js b/models/cards.js index d91b9050..66bfbcf3 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1165,7 +1165,7 @@ function cardMembers(userId, doc, fieldNames, modifier) { // Say hello to the new member if (modifier.$addToSet && modifier.$addToSet.members) { memberId = modifier.$addToSet.members; - let username = Users.findOne(memberId).username; + const username = Users.findOne(memberId).username; if (!_.contains(doc.members, memberId)) { Activities.insert({ userId, @@ -1180,7 +1180,7 @@ function cardMembers(userId, doc, fieldNames, modifier) { // Say goodbye to the former member if (modifier.$pull && modifier.$pull.members) { memberId = modifier.$pull.members; - let username = Users.findOne(memberId).username; + const username = Users.findOne(memberId).username; // Check that the former member is member of the card if (_.contains(doc.members, memberId)) { Activities.insert({ |