Skip to content

Commit

Permalink
do not run cron when loading party to avoid race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
paglias committed May 24, 2016
1 parent c7d3539 commit 91e16ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/server/controllers/api-v3/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91e16ff

Please sign in to comment.