-
Notifications
You must be signed in to change notification settings - Fork 5
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
Added two new fields to Order model #2
base: master
Are you sure you want to change the base?
Conversation
@@ -17,6 +17,12 @@ module.exports = { | |||
phone: { | |||
type: Sequelize.STRING | |||
}, | |||
post_address: { |
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.
You need use camelCase styles
} | ||
return issue | ||
.destroy() | ||
.then(() => res.status(204).send()) |
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.
This is not good method. Please use 200
return Issue | ||
.findOne({ where: { id: req.params.id } }) | ||
.then((issues) => res.status(200).send(issues)) | ||
.catch((error) => res.status(400).send(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.
use 404
No description provided.