do not run cron when getting a group

This commit is contained in:
Matteo Pagliazzi
2016-05-31 18:46:17 +02:00
committed by Blade Barringer
parent e07ade5a4a
commit d7cd2ce329

View File

@@ -117,6 +117,7 @@ api.getGroups = {
api.getGroup = {
method: 'GET',
url: '/groups/:groupId',
runCron: false, // Do not run cron to avoid double cronning because it's called in parallel to GET /user when the site loads
middlewares: [authWithHeaders()],
async handler (req, res) {
let user = res.locals.user;