run cron when getting group

This commit is contained in:
Matteo Pagliazzi
2016-05-25 23:14:34 +02:00
parent 9b529fff52
commit 275d29e3f4
2 changed files with 1 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import {
import common from '../../../../../common';
import { v4 as generateUUID } from 'uuid';
describe('GET /user/anonymized', () => {
describe.only('GET /user/anonymized', () => {
let user;
let endpoint = '/user/anonymized';

View File

@@ -117,9 +117,6 @@ api.getGroups = {
api.getGroup = {
method: 'GET',
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: true,
middlewares: [authWithHeaders()],
async handler (req, res) {
let user = res.locals.user;