summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 20:19:47 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 20:19:47 +0200
commitdba5de18828313711b245792d5c6da81fd60031e (patch)
tree818f0a2061966542c7351ee70872a13c93975bac
parent620180981050e2db4e2fe69c968c529951a02fdc (diff)
downloadwekan-dba5de18828313711b245792d5c6da81fd60031e.tar.gz
wekan-dba5de18828313711b245792d5c6da81fd60031e.tar.bz2
wekan-dba5de18828313711b245792d5c6da81fd60031e.zip
Lint fix
-rw-r--r--client/components/rules/triggers/boardTriggers.js14
-rw-r--r--models/cards.js4
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({