mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
fix redis init
This commit is contained in:
parent
e442617421
commit
dcf16e1411
1 changed files with 1 additions and 5 deletions
|
|
@ -70,11 +70,7 @@ async function set(key, value) {
|
|||
|
||||
async function connect() {
|
||||
if (!redis) {
|
||||
process.env.REDIS_URL && (global[REDIS] || getClient());
|
||||
|
||||
if (!(await redis.get(INITIALIZED))) {
|
||||
await stageData();
|
||||
}
|
||||
redis = process.env.REDIS_URL && (global[REDIS] || getClient());
|
||||
}
|
||||
|
||||
return redis;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue