mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
fix redis connection. fix delete account
This commit is contained in:
parent
12704c81e5
commit
afe6d8994b
3 changed files with 15 additions and 7 deletions
|
|
@ -9,6 +9,10 @@ const INITIALIZED = 'redis:initialized';
|
|||
export const DELETED = 'deleted';
|
||||
|
||||
function getClient() {
|
||||
if (!process.env.REDIS_URL) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const redis = new Redis(process.env.REDIS_URL);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue