revert add password redis
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
This commit is contained in:
parent
2f7ec40e78
commit
8807ee3226
8 changed files with 5 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue