mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add null check to redis return value for getValueFromTokenAndExpire
This commit is contained in:
parent
2ad0bab976
commit
928777b61c
1 changed files with 1 additions and 1 deletions
|
@ -30,5 +30,5 @@ module.exports =
|
||||||
multi.get buildKey(token)
|
multi.get buildKey(token)
|
||||||
multi.del buildKey(token)
|
multi.del buildKey(token)
|
||||||
multi.exec (err, results)->
|
multi.exec (err, results)->
|
||||||
callback err, results[0]
|
callback err, results?[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue