Update redis package.

This commit is contained in:
Mike Cao 2023-09-21 16:30:15 -07:00
parent 6291654748
commit 7f1f3b685a
8 changed files with 26 additions and 29 deletions

View file

@ -55,7 +55,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
if (isUuid(userId)) {
user = await getUserById(userId);
} else if (redis.enabled && authKey) {
} else if (redis && authKey) {
user = await redis.get(authKey);
}