mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +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() {
|
async function connect() {
|
||||||
if (!redis) {
|
if (!redis) {
|
||||||
process.env.REDIS_URL && (global[REDIS] || getClient());
|
redis = process.env.REDIS_URL && (global[REDIS] || getClient());
|
||||||
|
|
||||||
if (!(await redis.get(INITIALIZED))) {
|
|
||||||
await stageData();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return redis;
|
return redis;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue