summaryrefslogtreecommitdiffstats
path: root/models/checklistItems.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-06-29 07:47:57 -0400
committerLauri Ojansivu <x@xet7.org>2019-06-29 07:47:57 -0400
commitb84dc20ded0375d9ab14ec05c78b737398d76b83 (patch)
treec3b91b3657299c779e941a1257df17bb0eade866 /models/checklistItems.js
parent100288b3e1bce882ab9923a5bff7b5f620f33ee8 (diff)
parent3eb4d2c341b712268bd321173909e0a7b19a88c9 (diff)
downloadwekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.tar.gz
wekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.tar.bz2
wekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.zip
Merge branch 'linting' of https://github.com/justinr1234/wekan into justinr1234-linting
Diffstat (limited to 'models/checklistItems.js')
-rw-r--r--models/checklistItems.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/models/checklistItems.js b/models/checklistItems.js
index d548e681..e6451fbf 100644
--- a/models/checklistItems.js
+++ b/models/checklistItems.js
@@ -61,7 +61,7 @@ ChecklistItems.attachSchema(
}
},
},
- })
+ }),
);
ChecklistItems.allow({
@@ -225,11 +225,6 @@ if (Meteor.isServer) {
publishChekListUncompleted(userId, doc, fieldNames);
});
- ChecklistItems.before.update((userId, doc, fieldNames, modifier, options) => {
- modifier.$set = modifier.$set || {};
- modifier.$set.modifiedAt = Date.now();
- });
-
ChecklistItems.after.insert((userId, doc) => {
itemCreation(userId, doc);
});
@@ -281,7 +276,7 @@ if (Meteor.isServer) {
code: 500,
});
}
- }
+ },
);
/**
@@ -308,13 +303,13 @@ if (Meteor.isServer) {
if (req.body.hasOwnProperty('isFinished')) {
ChecklistItems.direct.update(
{ _id: paramItemId },
- { $set: { isFinished: req.body.isFinished } }
+ { $set: { isFinished: req.body.isFinished } },
);
}
if (req.body.hasOwnProperty('title')) {
ChecklistItems.direct.update(
{ _id: paramItemId },
- { $set: { title: req.body.title } }
+ { $set: { title: req.body.title } },
);
}
@@ -324,7 +319,7 @@ if (Meteor.isServer) {
_id: paramItemId,
},
});
- }
+ },
);
/**
@@ -353,7 +348,7 @@ if (Meteor.isServer) {
_id: paramItemId,
},
});
- }
+ },
);
}