Skip to content

Commit a53a7ef

Browse files
committed
0.0.5
1 parent 251afb7 commit a53a7ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "es6-express-mongoose-starter",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Express & Mongoose starter kit written in ES6 for NodeJS.",
55
"main": "src/server.js",
66
"repository": {

src/api/todo/todo.ctrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function getAll(req, res) {
1515

1616
function update(req, res) {
1717
const { id } = req.params;
18-
const { name, completed } = req.body.name;
18+
const { name, completed } = req.body;
1919

2020
TodoDa.update(id, name, completed)
2121
.then(() => res.sendStatus(200))

0 commit comments

Comments
 (0)