Skip to content

Commit 0411226

Browse files
authored
Merge pull request #3240 from myverdict/patch-21
Update part4c.md
2 parents 446704b + c71b1a5 commit 0411226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/4/en/part4c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ notesRouter.post('/', async (request, response) => {
433433
user.notes = user.notes.concat(savedNote._id) //highlight-line
434434
await user.save() //highlight-line
435435

436-
response.json(savedNote)
436+
response.status(201).json(savedNote)
437437
})
438438
```
439439
The note scheme will also need to change as follows in our models/note.js file:

0 commit comments

Comments
 (0)