diff options
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 4 |
1 files changed, 2 insertions, 2 deletions
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({ |