Skip to content
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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

Pavangbhat
Copy link
Contributor

@Pavangbhat Pavangbhat commented Mar 23, 2024

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?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Test Coverage

Screenshot 1

Additional Notes

Updated API contracts here: Real-Dev-Squad/website-api-contracts#180

@Pavangbhat Pavangbhat marked this pull request as draft March 23, 2024 19:58
routes/userStatus.js Fixed Show fixed Hide fixed
@Pavangbhat Pavangbhat self-assigned this Mar 26, 2024
@Pavangbhat Pavangbhat changed the title created new route for sync Created new route for nickname sync actions Mar 26, 2024
routes/userStatus.js Dismissed Show dismissed Hide dismissed
Comment on lines +245 to +246
await updateAllUserStatus(req, res, next);
const usersData = await getTaskBasedUsersStatus(req, res, next);
Copy link
Contributor

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants