mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 22:26:27 +00:00
Merge branch 'main' of https://github.com/mohamadihsan/topuponline into nuranggi
This commit is contained in:
@@ -495,22 +495,22 @@ const paymentRecon = async (req, res) => {
|
||||
await _sleep(helper.randomNumberInt());
|
||||
PaymentReconNumber = await generatePaymentReconNumber(partnerCode, now);
|
||||
|
||||
if (maxLoop > maxLoopParameter) {
|
||||
// create log
|
||||
winston.logger.error(`server is busy. please try again.`);
|
||||
|
||||
return {
|
||||
code: "500",
|
||||
message:
|
||||
process.env.NODE_ENV != "production"
|
||||
? error.message
|
||||
: "server is busy. please try again.",
|
||||
data: {},
|
||||
};
|
||||
}
|
||||
|
||||
maxLoop++;
|
||||
} while (PaymentReconNumber == "XX");
|
||||
} while (PaymentReconNumber == "XX" || (maxLoop > maxLoopParameter));
|
||||
|
||||
if (maxLoop > maxLoopParameter) {
|
||||
// create log
|
||||
winston.logger.error(`server is busy. please try again.`);
|
||||
|
||||
return {
|
||||
code: "500",
|
||||
message:
|
||||
process.env.NODE_ENV != "production"
|
||||
? error.message
|
||||
: "server is busy. please try again.",
|
||||
data: {},
|
||||
};
|
||||
}
|
||||
|
||||
// check ref no and amount
|
||||
let checkReservationNumberAndAmountAlreadyRecon =
|
||||
|
||||
Reference in New Issue
Block a user