-
Notifications
You must be signed in to change notification settings - Fork 8
Feature/hanoak #18
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
Feature/hanoak #18
Conversation
src/controllers/auth.controller.ts
Outdated
| res.status(resp.status).json(resp.data); | ||
| } catch (error) { | ||
| console.error(error); | ||
| res |
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.
Please use centralised error handling.
src/controllers/auth.controller.ts
Outdated
| const user = await userService.getUserProfile(req); | ||
| res.status(200).json(user); | ||
| } catch (error) { | ||
| console.error(error); |
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.
Please use centralised logger. @hanoak20
| res.status(200).json(resp); | ||
| } catch (error) { | ||
| console.error(error); | ||
| res.status(500).json({ message: "Internal Server Error" }); |
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.
Please use centralised error handling. @hanoak20
himanshu-contentstack
left a comment
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.
Please have a look into the review comments and resolve. Thanks
No description provided.