summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,