mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b206b50968 |
@@ -91,8 +91,8 @@ const cardHistory = async (req, res) => {
|
||||
new Date((parseInt(element.slice(0, 8), 16) + 946684800) * 1000)
|
||||
).format('YYYY-MM-DD HH:mm:ss');
|
||||
nominal = parseInt(element.slice(8, 16), 16);
|
||||
mid = element.slice(16, 20);
|
||||
tid = element.slice(20, 24);
|
||||
mid = element.slice(16, 20).toUpperCase();
|
||||
tid = element.slice(20, 24).toUpperCase();
|
||||
|
||||
// blok yang menandakan konten untuk reska
|
||||
checkReskaFormat = element.slice(14, 20);
|
||||
@@ -198,6 +198,14 @@ const history = async (req, res) => {
|
||||
// param
|
||||
let { mid, tid, card_number, start_date, end_date } = req.body;
|
||||
|
||||
if (mid) {
|
||||
mid = mid.toUpperCase();
|
||||
}
|
||||
|
||||
if (tid) {
|
||||
tid = tid.toUpperCase();
|
||||
}
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ REQUEST CARD-HISTORY-FROM-CMS ]: ${JSON.stringify(
|
||||
|
||||
Generated
+1522
-1584
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/mohamadihsan/topuponline#readme",
|
||||
"dependencies": {
|
||||
"axios": "^0.27.2",
|
||||
"axios": "^1.7.7",
|
||||
"bcrypt": "^5.0.1",
|
||||
"body-parser": "^1.19.0",
|
||||
"check-internet-connected": "^2.0.6",
|
||||
@@ -32,8 +32,8 @@
|
||||
"express": "^4.17.1",
|
||||
"express-validator": "^6.10.0",
|
||||
"express-winston": "^4.2.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"knex": "^0.95.4",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"knex": "^3.1.0",
|
||||
"moment": "^2.29.3",
|
||||
"node-cron": "^3.0.1",
|
||||
"pg": "^8.6.0",
|
||||
@@ -41,12 +41,12 @@
|
||||
"prom-client": "^14.2.0",
|
||||
"redis": "^4.6.5",
|
||||
"response-time": "^2.3.2",
|
||||
"sticky-session": "^1.1.2",
|
||||
"sticky-session": "^0.1.0",
|
||||
"winston": "^3.7.2",
|
||||
"winston-daily-rotate-file": "^4.7.1",
|
||||
"winston-loki": "^6.0.6",
|
||||
"ws": "^8.5.0",
|
||||
"xml2js": "^0.4.23"
|
||||
"xml2js": "^0.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.0.2",
|
||||
|
||||
Reference in New Issue
Block a user