-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created new route for nickname sync actions #1981
base: develop
Are you sure you want to change the base?
Conversation
bb3d10c
to
690d0a1
Compare
e735491
to
beac0a5
Compare
e16e29d
to
ef37641
Compare
await updateAllUserStatus(req, res, next); | ||
const usersData = await getTaskBasedUsersStatus(req, res, next); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use this two fx as middleware?
also, these functions seem to be returning res, which will result in an error, because in that case we are calling res/json 3 times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO logic that should be part of controllers should not be used as middleware
also, these functions seem to be returning res, which will result in an error, because in that case we are calling res/json 3 times.
Appologies did not understand
Date: 23-03-2024
Developer Name: Pavan Bhat
Issue Ticket Number
Real-Dev-Squad/cron-jobs#60
Description
Created a new route that can support nickname sync action
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
Test Coverage
Screenshot 1
Additional Notes
Updated API contracts here: Real-Dev-Squad/website-api-contracts#180