Skip to content

Commit bfbb918

Browse files
committed
changed middleware for userStatus
1 parent 029f594 commit bfbb918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/userStatus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { Services } = require("../constants/bot");
2525
router.get("/", validateGetQueryParams, getUserStatusControllers);
2626
router.get("/self", authenticate, getUserStatus);
2727
router.get("/:userId", getUserStatus);
28-
router.patch("/sync", authenticate, authorizeRoles([SUPERUSER]), syncUserStatus);
28+
router.patch("/sync", authorizeAndAuthenticate([ROLES.SUPERUSER], [Services.CRON_JOB_HANDLER]), syncUserStatus);
2929

3030
router.patch("/self", authenticate, validateUserStatus, updateUserStatusController);
3131
router.patch("/update", authorizeAndAuthenticate([ROLES.SUPERUSER], [Services.CRON_JOB_HANDLER]), updateAllUserStatus);

0 commit comments

Comments
 (0)