Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var updatePost = function (req, res){
- var title = req.params.title,
- content = req.params.content,
- id = req.params.postId;
- console.log(req.body);
- blogPost.update({
- title:title,
- content: content
- },{
- where: { id : id }
- }).then(function() {
- console.log('went weell');
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement