Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
52 stars 253 forks source link

Remove checkIsVerifiedDiscord for discord-actions/nicknames/sync API #1989

Open Pavangbhat opened 6 months ago

Pavangbhat commented 6 months ago

Issue Description

Removed Middleware for Reference:

image

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

Steps to Reproduce

Severity/Priority

Additional Information

Checklist