fix failing tests

This commit is contained in:
Matteo Pagliazzi
2016-03-11 09:51:59 +01:00
parent 78c1ee2053
commit 29b6e958c6
4 changed files with 4 additions and 4 deletions

View File

@@ -570,7 +570,7 @@ api.addChecklistItem = {
if (task.type !== 'daily' && task.type !== 'todo') throw new BadRequest(res.t('checklistOnlyDailyTodo'));
task.checklist.push(Tasks.Task.sanitizeChecklist(req.body));
task.checklist.push(Tasks.Task.sanitizeChecklist(req.body)); // TODO why not allow to supply _id on creation?
let savedTask = await task.save();
res.respond(200, savedTask); // TODO what to return