change references to imported libs

This commit is contained in:
Matteo Pagliazzi
2016-03-08 17:49:18 +01:00
parent 5a2daabada
commit a351cb5f4e
9 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ module.exports = function(user, req, cb) {
}
tasks = user[task.type + "s"];
if (task.type === 'todo' && tasks[from] !== task) {
preenedTasks = api.preenTodos(tasks);
preenedTasks = preenTodos(tasks);
if (to !== -1) {
to = tasks.indexOf(preenedTasks[to]);
}