Update redis package.

This commit is contained in:
Mike Cao committed 2023-09-21 16:30:15 -07:00
1 parent 6291654748
commit 7f1f3b685a
8 files changed
+26 -29

No files matched your search

+1 -1
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);
}