This route discord-actions/nicknames/sync is behind a middleware accessing req.userData which would only be available if the call is made through website-dashboard. We need to remove this check as we move these routes to a cronjob
Expected Behavior
The route should also be accessible through cronjob without user details
Current Behavior
req.userData is blocking us from triggering this API through cronjob
Screenshots
Reproducibility
[ ] This issue is reproducible
[x] This issue is not reproducible
Steps to Reproduce
Severity/Priority
[ ] Critical
[ ] High
[x] Medium
[ ] Low
Additional Information
Checklist
[x] I have read and followed the project's code of conduct.
[x] I have searched for similar issues before creating this one.
[x] I have provided all the necessary information to understand and reproduce the issue.
[x] I am willing to contribute to the resolution of this issue.
Issue Description
Removed Middleware for Reference:
This route
discord-actions/nicknames/sync
is behind a middleware accessingreq.userData
which would only be available if the call is made through website-dashboard. We need to remove this check as we move these routes to a cronjobExpected Behavior
The route should also be accessible through cronjob without user details
Current Behavior
req.userData is blocking us from triggering this API through cronjob
Screenshots
Reproducibility
Steps to Reproduce
Severity/Priority
Additional Information
Checklist