Update redis package.
This commit is contained in:
1 parent
6291654748
commit
7f1f3b685a
8 files changed
+26
-29
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user