fix exports

This commit is contained in:
Matteo Pagliazzi
2019-10-01 17:53:48 +02:00
parent 4faa06f37d
commit cca5b8492b
144 changed files with 271 additions and 315 deletions

View File

@@ -3,7 +3,7 @@ import clone from 'lodash/clone';
// TODO move to client since it's only used there?
module.exports = function addTask (user, req = {body: {}}) {
export default function addTask (user, req = {body: {}}) {
let task = taskDefaults(req.body, user);
user.tasksOrder[`${task.type}s`].unshift(task._id);
user[`${task.type}s`].unshift(task);
@@ -15,4 +15,4 @@ module.exports = function addTask (user, req = {body: {}}) {
task._advanced = !user.preferences.advancedCollapsed;
return task;
};
}