revert add password redis
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s

This commit is contained in:
harid 2026-06-30 11:04:19 +07:00
parent 2f7ec40e78
commit 8807ee3226
8 changed files with 5 additions and 23 deletions

View file

@ -384,7 +384,6 @@ class Extension {
const redisClient = redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const delAsync = promisify(redisClient.del).bind(redisClient);
const deleteKey = delAsync(type + id);

View file

@ -217,20 +217,17 @@ class CheckAuth {
// Create Redis client
const redisClient = this.redis.createClient({
// socket: {
// host: REDIS_HOST,
// port: REDIS_PORT,
// },
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
socket: {
host: REDIS_HOST,
port: REDIS_PORT,
},
});
redisClient.on("error", (err: any) => {
console.error("[REDIS] Connection error:", err.message);
});
// await redisClient.connect();
await redisClient.connect();
console.log("[REDIS] Connected successfully!");
const getAsync = promisify(redisClient.get).bind(redisClient);