Call save rather than return it

This commit is contained in:
David Beckley 2014-09-23 17:07:54 -07:00
parent 27dece30f7
commit 069657a1d5

View file

@ -97,7 +97,7 @@ setupFallbackRouteToIndex = (app) ->
if req.user if req.user
sendMain(req, res) sendMain(req, res)
req.user.set('lastIP', req.connection.remoteAddress) req.user.set('lastIP', req.connection.remoteAddress)
req.user.save req.user.save()
else else
user = auth.makeNewUser(req) user = auth.makeNewUser(req)
makeNext = (req, res) -> -> sendMain(req, res) makeNext = (req, res) -> -> sendMain(req, res)