refactor cron to avoid double cronning - work in progress

This commit is contained in:
Matteo Pagliazzi
2016-05-25 16:55:57 +02:00
parent 1a26965542
commit 31850830a0
3 changed files with 138 additions and 149 deletions

View File

@@ -119,7 +119,7 @@ api.getGroup = {
url: '/groups/:groupId',
// Disable cron when getting groups to avoid race conditions when the site is loaded
// and requests for party and user data are concurrent
runCron: false,
runCron: true,
middlewares: [authWithHeaders()],
async handler (req, res) {
let user = res.locals.user;