This will execute immediately. You need:

    .then(function() { res.send(204) })