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

@ -128,7 +128,6 @@ export class AuthRoleController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
redisClient.del("role_" + posMaster.current_holderId, (err: Error) => {
@ -297,7 +296,6 @@ export class AuthRoleController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
await redisClient.flushdb(function (err: any, succeeded: any) {

View file

@ -8830,7 +8830,6 @@ export class OrganizationController extends Controller {
const redisClient = redis.createClient({
host: process.env.REDIS_HOST || "localhost",
port: parseInt(process.env.REDIS_PORT || "6379"),
password: process.env.REDIS_PASSWORD,
});
const keysAsync = promisify(redisClient.keys).bind(redisClient);
const delAsync = promisify(redisClient.del).bind(redisClient);

View file

@ -42,7 +42,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -294,7 +293,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -693,7 +691,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -810,7 +807,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -906,7 +902,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -1160,7 +1155,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const getAsync = promisify(redisClient.get).bind(redisClient);
@ -1419,7 +1413,6 @@ export class PermissionController extends Controller {
redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
// const getAsync = promisify(redisClient.get).bind(redisClient);

View file

@ -328,7 +328,6 @@ export class PosMasterActController extends Controller {
const redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const delAsync = promisify(redisClient.del).bind(redisClient);
@ -866,7 +865,6 @@ export class PosMasterActController extends Controller {
const redisClient = await this.redis.createClient({
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
const delAsync = promisify(redisClient.del).bind(redisClient);