Use `req.params.id` instead of `req.query.id`.

In update and destroy middleware.