We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 029f594 commit bfbb918Copy full SHA for bfbb918
routes/userStatus.js
@@ -25,7 +25,7 @@ const { Services } = require("../constants/bot");
25
router.get("/", validateGetQueryParams, getUserStatusControllers);
26
router.get("/self", authenticate, getUserStatus);
27
router.get("/:userId", getUserStatus);
28
-router.patch("/sync", authenticate, authorizeRoles([SUPERUSER]), syncUserStatus);
+router.patch("/sync", authorizeAndAuthenticate([ROLES.SUPERUSER], [Services.CRON_JOB_HANDLER]), syncUserStatus);
29
30
router.patch("/self", authenticate, validateUserStatus, updateUserStatusController);
31
router.patch("/update", authorizeAndAuthenticate([ROLES.SUPERUSER], [Services.CRON_JOB_HANDLER]), updateAllUserStatus);
0 commit comments