mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
run cron when getting group
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user