use cron middleware

This commit is contained in:
Matteo Pagliazzi
2015-12-15 12:11:32 +01:00
parent e547eb2dde
commit 13cbf03759
9 changed files with 27 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ import common from '../../../../common';
import Task from '../../models/task';
// import Group from '../../models/group';
// TODO check that it's usef everywhere
export default function cronMiddleware (req, res, next) {
let user = res.locals.user;
let analytics = res.analytics;