summaryrefslogtreecommitdiffstats
path: root/models/checklists.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-15 23:06:54 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-04-16 00:19:03 -0300
commit4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e (patch)
tree16784a870503df050caa2d63c99c531a080b9764 /models/checklists.js
parent9eef5112dc1c1c30590d19fbfd2f615714112a3f (diff)
downloadwekan-4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e.tar.gz
wekan-4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e.tar.bz2
wekan-4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e.zip
Fix lint errors
Diffstat (limited to 'models/checklists.js')
-rw-r--r--models/checklists.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/checklists.js b/models/checklists.js
index de6c3660..e352f38d 100644
--- a/models/checklists.js
+++ b/models/checklists.js
@@ -148,7 +148,7 @@ if (Meteor.isServer) {
code: 500,
});
}
-});
+ });
JsonRoutes.add('POST', '/api/boards/:boardId/cards/:cardId/checklists', function (req, res) {
Authentication.checkUserId( req.userId);
@@ -160,7 +160,6 @@ if (Meteor.isServer) {
sort: 0,
});
if (id) {
- const checklist = Checklists.findOne({_id: id});
req.body.items.forEach(function (item, idx) {
ChecklistItems.insert({
cardId: paramCardId,