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