mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
update
This commit is contained in:
@@ -532,31 +532,32 @@ const loadingBalanceRequest = async (req, res) => {
|
||||
reservation_number: reservationNumber,
|
||||
},
|
||||
};
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} RESPONSE load balance validate: ${JSON.stringify(
|
||||
result
|
||||
)}`
|
||||
);
|
||||
} else {
|
||||
result = {
|
||||
code: '434',
|
||||
message: '[434] Failed, please try again later',
|
||||
data: {
|
||||
amount: amountTopup,
|
||||
total_reservation: totalReservation,
|
||||
reservation_number: reservationNumber,
|
||||
},
|
||||
};
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} RESPONSE load balance validate: ${JSON.stringify(
|
||||
result
|
||||
)}`
|
||||
);
|
||||
}
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} RESPONSE load balance validate: ${JSON.stringify(result)}`
|
||||
);
|
||||
// } else {
|
||||
// result = {
|
||||
// code: '434',
|
||||
// message: '[434] Failed, please try again later',
|
||||
// data: {
|
||||
// amount: amountTopup,
|
||||
// total_reservation: totalReservation,
|
||||
// reservation_number: reservationNumber,
|
||||
// },
|
||||
// };
|
||||
|
||||
// // log info
|
||||
// winston.logger.info(
|
||||
// `${uniqueCode} RESPONSE load balance validate: ${JSON.stringify(
|
||||
// result
|
||||
// )}`
|
||||
// );
|
||||
// }
|
||||
|
||||
return res.json(result);
|
||||
} catch (error) {
|
||||
// create log
|
||||
|
||||
Reference in New Issue
Block a user