add null check to redis return value for getValueFromTokenAndExpire

This commit is contained in:
Henry Oswald 2016-08-02 15:34:44 +01:00
parent 2ad0bab976
commit 928777b61c

View file

@ -30,5 +30,5 @@ module.exports =
multi.get buildKey(token)
multi.del buildKey(token)
multi.exec (err, results)->
callback err, results[0]
callback err, results?[0]