mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
fix redis init
This commit is contained in:
parent
e442617421
commit
dcf16e1411
@ -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…
x
Reference in New Issue
Block a user