Skip to content

Update user.controller.js Fixing the error of ignoring the ERROR case… #2768

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

Closed
wants to merge 1 commit into from

Conversation

koushik-dasss
Copy link

Using return promise logic of JS to get the ERROR CASES fixed without ignoring like the current code does .
Fixes IGNORANCE OF ERROR CASES by adding return promise method .

Screenshot 2023-12-24 112207

@lindapaiste
Copy link
Collaborator

Copying my comment from #2772 because this PR has the same issue.

The changes to the function look good. You’ve changed the signature of the function so that it no longer accepts a callback as an argument. So you need to make sure that you have updated all the places where this function is used so that the work with an async/promise call instead of passing a callback.

@lindapaiste lindapaiste closed this Jan 4, 2024
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