store reminders for tasks

This commit is contained in:
Phillip Thelen
2016-02-18 20:30:02 +01:00
parent c95950c679
commit 86181253c6
2 changed files with 10 additions and 2 deletions

View File

@@ -815,10 +815,13 @@ api.wrap = function(user, main) {
message: i18n.t('messageTaskNotFound', req.language)
}) : void 0;
}
_.merge(task, _.omit(req.body, ['checklist', 'id', 'type']));
_.merge(task, _.omit(req.body, ['checklist', 'remidners', 'id', 'type']));
if (req.body.checklist) {
task.checklist = req.body.checklist;
}
if (req.body.reminders) {
task.reminders = req.body.reminders;
}
if (typeof task.markModified === "function") {
task.markModified('tags');
}