mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
🐛fetchNextLevel req.user null check
This commit is contained in:
parent
fe1598cab2
commit
1685e92f6e
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ module.exports =
|
|||
|
||||
|
||||
fetchNextLevel: wrap (req, res) ->
|
||||
unless req.user? then return res.status(200).send({})
|
||||
levelOriginal = req.params.levelOriginal
|
||||
unless database.isID(levelOriginal) then throw new errors.UnprocessableEntity('Invalid level original ObjectId')
|
||||
sessionID = req.params.sessionID
|
||||
|
|
Loading…
Reference in a new issue