diff --git a/application/modules/loadbalance/loadbalance.controller.js b/application/modules/loadbalance/loadbalance.controller.js index b287fbe..a845399 100644 --- a/application/modules/loadbalance/loadbalance.controller.js +++ b/application/modules/loadbalance/loadbalance.controller.js @@ -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;