mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Update redis package.
This commit is contained in:
parent
6291654748
commit
7f1f3b685a
8 changed files with 26 additions and 29 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue