Node.js based forum software built for the modern web
test: change redis connection (#13844)
Barış Uşaklı550411fb58b0
diff --git a/src/database/redis/connection.js b/src/database/redis/connection.jsindex 41a9243355..b97f75a4a4 100644--- a/src/database/redis/connection.js+++ b/src/database/redis/connection.js@@ -58,13 +58,12 @@ connection.connect = async function (options) {winston.error(err.stack);reject(err);});- cxn.on('ready', () => {++ cxn.connect().then(() => {// back-compat with node_rediscxn.batch = cxn.multi;- resolve(cxn);- });- cxn.connect().then(() => {winston.info('Connected to Redis successfully');+ resolve(cxn);}).catch((err) => {winston.error('Error connecting to Redis:', err);});