Merge remote-tracking branch 'origin/develop_v1.5.2' into develop

This commit is contained in:
2024-10-11 16:38:51 +07:00
3 changed files with 1537 additions and 1591 deletions
@@ -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(