In most business logic in the user controller, the errors are thrown in the catch black instead of handled properly in the try block.
Refactoring to handle errors in the try block and pass then into next to be managed by the application error handling middleware.
In most business logic in the user controller, the errors are thrown in the catch black instead of handled properly in the try block.
Refactoring to handle errors in the try block and pass then into next to be managed by the application error handling middleware.