Could you please explain the change please ?

On line 71 you're using res.send, despite of the fact res doesn't exist ?