fix redis connection. fix delete account

This commit is contained in:
Brian Cao 2022-09-01 11:11:11 -07:00
parent 12704c81e5
commit afe6d8994b
3 changed files with 15 additions and 7 deletions

View file

@ -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') {