mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
add log debug
This commit is contained in:
@@ -710,9 +710,23 @@ const loadingBalanceRequest = async (req, res) => {
|
||||
// let getReservationPendingWithFlag =
|
||||
// await model.getReservationPendingWithFlag(card_number, now);
|
||||
|
||||
winston.logger.warn(
|
||||
`${uniqueCode} [ RESPONSE LOADING-BALANCE-REQUEST DEBUG 1 ]: ${JSON.stringify(
|
||||
getReservationPendingWithFlagCounter
|
||||
)}`
|
||||
);
|
||||
|
||||
|
||||
winston.logger.warn(
|
||||
`${uniqueCode} [ RESPONSE LOADING-BALANCE-REQUEST DEBUG 2 ]: ${flag}`
|
||||
`${uniqueCode} [ RESPONSE LOADING-BALANCE-REQUEST DEBUG 3 ]: ${lastFlag}`
|
||||
);
|
||||
|
||||
if (getReservationPendingWithFlagCounter.length > 0) {
|
||||
if (lastFlag) {
|
||||
if ((parseInt(lastFlag) <= parseInt(flag)) || (parseInt(lastFlag) == 255 && parseInt(flag) == 0)) {
|
||||
`${uniqueCode} [ RESPONSE LOADING-BALANCE-REQUEST DEBUG 4 ]: `
|
||||
if ((parseInt(lastFlag) <= parseInt(flag)) || (parseInt(lastFlag) == 255 && parseInt(flag) == 0)) {
|
||||
`${uniqueCode} [ RESPONSE LOADING-BALANCE-REQUEST DEBUG 5 ]: `
|
||||
let reservationNumberPendingSuccessLoaded = [];
|
||||
let loadBalanceNumberPendingSuccessLoaded = [];
|
||||
let totalReservationAmount = 0;
|
||||
|
||||
Reference in New Issue
Block a user