mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Call save rather than return it
This commit is contained in:
parent
27dece30f7
commit
069657a1d5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue