aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--practice/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/practice/index.js b/practice/index.js
index 2abb422..f6f51a5 100644
--- a/practice/index.js
+++ b/practice/index.js
@@ -43,7 +43,7 @@ app.get('/api/notes/:id', (request, response) => {
app.delete('/api/notes/:id', (request, response) => {
const id = Number(request.params.id)
- const note = notes.filter(note => note.id !== id)
+ notes = notes.filter(note => note.id !== id)
response.status(204).end()
})