🔍 fix: USE_REDIS condition, Markdown list counter, code highlights (#3806)

* fix: markdown rehype highlight accidental removal

* fix: USE_REDIS condition check

* fix: markdown list counter
This commit is contained in:
Danny Avila 2024-08-27 14:49:43 -04:00 committed by GitHub
parent f742b9972e
commit a267f6e0da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 20 deletions

View file

@ -9,6 +9,7 @@ const {
discordLogin,
facebookLogin,
} = require('~/strategies');
const { isEnabled } = require('~/server/utils');
const { logger } = require('~/config');
/**
@ -40,7 +41,7 @@ const configureSocialLogins = (app) => {
resave: false,
saveUninitialized: false,
};
if (process.env.USE_REDIS) {
if (isEnabled(process.env.USE_REDIS)) {
const client = new Redis(process.env.REDIS_URI);
client
.on('error', (err) => logger.error('ioredis error:', err))