diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:13:35 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:13:35 +0100 |
commit | eb62c9ce6ad0fa0d5de7889ec087db8cdc579339 (patch) | |
tree | 23fb755a2c54fd4cd153af9ab3e7d391449547e7 /models/checklists.js | |
parent | 60be4df76e02afdf4dd62f8e03505d55c0ed119e (diff) | |
download | wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.gz wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.bz2 wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.zip |
Fix lint errors
Diffstat (limited to 'models/checklists.js')
-rw-r--r-- | models/checklists.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/models/checklists.js b/models/checklists.js index 99e9f25e..9e763f1a 100644 --- a/models/checklists.js +++ b/models/checklists.js @@ -49,16 +49,16 @@ Checklists.attachSchema(new SimpleSchema({ Checklists.helpers({ copy(newCardId) { - const oldChecklistId = this._id; - this._id = null; - this.cardId = newCardId; - const newChecklistId = Checklists.insert(this); - ChecklistItems.find({checklistId: oldChecklistId}).forEach((item) => { - item._id = null; - item.checklistId = newChecklistId; - item.cardId = newCardId; - ChecklistItems.insert(item); - }); + const oldChecklistId = this._id; + this._id = null; + this.cardId = newCardId; + const newChecklistId = Checklists.insert(this); + ChecklistItems.find({checklistId: oldChecklistId}).forEach((item) => { + item._id = null; + item.checklistId = newChecklistId; + item.cardId = newCardId; + ChecklistItems.insert(item); + }); }, itemCount() { |