Merge pull request #6733 from vIiRuS/mobileStorage

Store data for next mobile update
This commit is contained in:
Sabe Jones
2016-03-09 14:56:15 -06:00
5 changed files with 50 additions and 4 deletions

View File

@@ -814,10 +814,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', 'reminders', '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');
}