diff --git a/server/api/controller/event.js b/server/api/controller/event.js index 823b5ef3..727879d5 100644 --- a/server/api/controller/event.js +++ b/server/api/controller/event.js @@ -86,6 +86,7 @@ const eventController = { }, async get (req, res) { + log.error('get') const format = req.params.format || 'json' const is_admin = req.user && req.user.is_admin const id = Number(req.params.event_id) @@ -97,7 +98,7 @@ const eventController = { exclude: ['createdAt', 'updatedAt', 'placeId'] }, include: [ - { model: Tag, required: false, attributes: ['tag', 'weigth'], through: { attributes: [] } }, + { model: Tag, required: false, attributes: ['tag'], through: { attributes: [] } }, { model: Place, attributes: ['name', 'address', 'id'] }, { model: Resource, diff --git a/server/taskManager.js b/server/taskManager.js index 838e7f16..c35fd627 100644 --- a/server/taskManager.js +++ b/server/taskManager.js @@ -99,7 +99,8 @@ const TS = new TaskManager() TS.add(new Task({ name: 'CREATE_RECURRENT_EVENT', method: eventController._createRecurrent, - repeatDelay: hour / 2 // check each half an hour + repeatDelay: hour / 2, // check each half an hour + repeat: true })) // remove unrelated places @@ -107,6 +108,7 @@ TS.add(new Task({ name: 'CLEAN_UNUSED_PLACES', method: placeHelpers._cleanUnused, repeatDelay: day, + repeat: true, callAtStart: true })) @@ -114,6 +116,7 @@ TS.add(new Task({ name: 'CLEAN_UNUSED_TAGS', method: tagHelpers._cleanUnused, repeatDelay: day, + repeat: true, callAtStart: true }))