mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
run cron when getting group
This commit is contained in:
parent
9b529fff52
commit
275d29e3f4
2 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue