fix redis connection. fix delete account
This commit is contained in:
1 parent
12704c81e5
commit
afe6d8994b
3 files changed
+15
-7
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user