mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
do not run cron when getting a group
This commit is contained in:
committed by
Blade Barringer
parent
e07ade5a4a
commit
d7cd2ce329
@@ -117,6 +117,7 @@ api.getGroups = {
|
||||
api.getGroup = {
|
||||
method: 'GET',
|
||||
url: '/groups/:groupId',
|
||||
runCron: false, // Do not run cron to avoid double cronning because it's called in parallel to GET /user when the site loads
|
||||
middlewares: [authWithHeaders()],
|
||||
async handler (req, res) {
|
||||
let user = res.locals.user;
|
||||
|
||||
Reference in New Issue
Block a user