mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 05:31:50 +02: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() {
|
||||
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…
Reference in New Issue
Block a user