summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-02-24 00:13:35 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-02-24 00:13:35 +0100
commiteb62c9ce6ad0fa0d5de7889ec087db8cdc579339 (patch)
tree23fb755a2c54fd4cd153af9ab3e7d391449547e7 /models/cards.js
parent60be4df76e02afdf4dd62f8e03505d55c0ed119e (diff)
downloadwekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.gz
wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.bz2
wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.zip
Fix lint errors
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/models/cards.js b/models/cards.js
index c7b4a366..e91f0af5 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -273,28 +273,28 @@ Cards.allow({
Cards.helpers({
copy() {
- const oldId = this._id;
- this._id = null;
- const _id = Cards.insert(this);
+ const oldId = this._id;
+ this._id = null;
+ const _id = Cards.insert(this);
- // copy checklists
- Checklists.find({cardId: oldId}).forEach((ch) => {
- ch.copy(_id);
- });
+ // copy checklists
+ Checklists.find({cardId: oldId}).forEach((ch) => {
+ ch.copy(_id);
+ });
- // copy subtasks
- Cards.find({parentId: oldId}).forEach((subtask) => {
- subtask.parentId = _id;
- subtask._id = null;
- Cards.insert(subtask);
- });
+ // copy subtasks
+ Cards.find({parentId: oldId}).forEach((subtask) => {
+ subtask.parentId = _id;
+ subtask._id = null;
+ Cards.insert(subtask);
+ });
- // copy card comments
- CardComments.find({cardId: oldId}).forEach((cmt) => {
- cmt.copy(_id);
- });
+ // copy card comments
+ CardComments.find({cardId: oldId}).forEach((cmt) => {
+ cmt.copy(_id);
+ });
- return _id;
+ return _id;
},
list() {
@@ -1259,7 +1259,7 @@ Cards.mutations({
function cardMove(userId, doc, fieldNames, oldListId, oldSwimlaneId) {
if ((_.contains(fieldNames, 'listId') && doc.listId !== oldListId) ||
- (_.contains(fieldNames, 'swimlaneId') && doc.swimlaneId !== oldSwimlaneId)){
+ (_.contains(fieldNames, 'swimlaneId') && doc.swimlaneId !== oldSwimlaneId)){
Activities.insert({
userId,
oldListId,