mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
do not run cron when loading party to avoid race conditions
This commit is contained in:
parent
c7d3539815
commit
91e16ff191
1 changed files with 3 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ 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: false,
|
||||
middlewares: [authWithHeaders()],
|
||||
async handler (req, res) {
|
||||
let user = res.locals.user;
|
||||
|
|
|
|||
Loading…
Reference in a new issue