mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 19:26:27 +00:00
update
This commit is contained in:
@@ -34,7 +34,19 @@ const filename = () => {
|
||||
|
||||
filename();
|
||||
|
||||
const routes = ["/api/reservation", "/api/reservation/v2"];
|
||||
const routes = [
|
||||
"/api/reservation",
|
||||
"/api/reservation/v2",
|
||||
"/api/loadbalance/request",
|
||||
"/api/topup1",
|
||||
"/api/topup2",
|
||||
"/api/topup3",
|
||||
"/api/topup4",
|
||||
"/api/topup5",
|
||||
"/api/topup6",
|
||||
"/api/topup7",
|
||||
"/api/topup8",
|
||||
];
|
||||
|
||||
const logger = {
|
||||
response: expressWinston.logger({
|
||||
@@ -66,7 +78,11 @@ const logger = {
|
||||
issuerName = "WEB";
|
||||
} else {
|
||||
let getIssuerName = await getPartner(info.meta.req.partner_id_token);
|
||||
issuerName = getIssuerName.c_name;
|
||||
if (!getIssuerName.c_name) {
|
||||
issuerName = "WEB";
|
||||
} else {
|
||||
issuerName = getIssuerName.c_name;
|
||||
}
|
||||
}
|
||||
|
||||
let statusCode = info.meta.res.body.code;
|
||||
|
||||
@@ -13,13 +13,13 @@ let redisClient;
|
||||
password: '',
|
||||
});
|
||||
|
||||
redisClient.on('error', (error) => console.error(`Error : ${error}`));
|
||||
redisClient.on('error', (error) => {});
|
||||
|
||||
redisClient.on('connect', () => console.log('Redis is Connected'));
|
||||
|
||||
redisClient.on('ready', () => console.log('Redis is Ready'));
|
||||
|
||||
redisClient.on('reconnecting', () => console.log('Redis is Reconnecting'));
|
||||
redisClient.on('reconnecting', () => {});
|
||||
|
||||
await redisClient.connect();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user