mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:56:27 +00:00
bug fix
This commit is contained in:
@@ -324,7 +324,7 @@ const insertLoadingBalance = async (
|
||||
let loadDetail = [];
|
||||
detail.forEach((element) => {
|
||||
loadDetail.push({
|
||||
i_load_balance: id.i_load_balance,
|
||||
i_load_balance: id ? id : id.i_load_balance,
|
||||
i_reservation_balance: element.i_reservation_balance,
|
||||
c_reservation_no: element.c_reservation_no,
|
||||
i_amount: element.i_amount,
|
||||
@@ -356,7 +356,7 @@ const insertLoadingBalance = async (
|
||||
let loadDetail = [];
|
||||
detail.forEach((element) => {
|
||||
loadDetail.push({
|
||||
i_load_balance: id.i_load_balance,
|
||||
i_load_balance: id ? id : id.i_load_balance,
|
||||
i_reservation_balance: element.i_reservation_balance,
|
||||
c_reservation_no: element.c_reservation_no,
|
||||
i_amount: element.i_amount,
|
||||
@@ -419,14 +419,12 @@ const insertLoadingBalance = async (
|
||||
// console.log("result insertLoadingBalance", result);
|
||||
winston.logger.debug(`XXXXXXXXXXX1 : ${result}`);
|
||||
winston.logger.debug(`XXXXXXXXXXX2 : ${JSON.stringify(result)}`);
|
||||
winston.logger.debug(`XXXXXXXXXXX3 : ${JSON.parse(result)}`);
|
||||
return result.rowCount;
|
||||
})
|
||||
.catch((error) => {
|
||||
// console.log("error.message insertLoadingBalance", error.message);
|
||||
winston.logger.debug(`YYYYYYYYYYY1 : ${error}`);
|
||||
winston.logger.debug(`YYYYYYYYYYY2 : ${JSON.stringify(error)}`);
|
||||
winston.logger.debug(`YYYYYYYYYYY3 : ${JSON.parse(error)}`);
|
||||
return error.message;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user