Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hrk4649 committed Feb 25, 2023
1 parent 12039e0 commit a3cb791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/book.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
console.log('update 1');
Book.update({
title: req.body.title,
author: req.params.author
author: req.body.author
}, {
where: {id: req.params.id}
})
Expand Down

0 comments on commit a3cb791

Please sign in to comment.