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

@@ -5,7 +5,7 @@ import findIndex from 'lodash/findIndex';
// TODO used only in client, move there?
module.exports = function deleteTask (user, req = {}) {
export default function deleteTask (user, req = {}) {
let tid = get(req, 'params.id');
let taskType = get(req, 'params.taskType');
@@ -20,4 +20,4 @@ module.exports = function deleteTask (user, req = {}) {
user[`${taskType}s`].splice(index, 1);
return {};
};
}