mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 17:36:27 +00:00
bug fixing
This commit is contained in:
@@ -300,6 +300,7 @@ const insertLoadingBalance = async (
|
||||
.transacting(trx)
|
||||
.insert(data)
|
||||
.returning('i_load_balance')
|
||||
console.log("resp insertLoadingBalance", resp)
|
||||
.then((resp) => {
|
||||
let id = resp[0];
|
||||
let loadDetail = [];
|
||||
@@ -397,11 +398,11 @@ const insertLoadingBalance = async (
|
||||
.catch(trx.rollback);
|
||||
})
|
||||
.then((result) => {
|
||||
// console.log(result);
|
||||
console.log(result);
|
||||
return result.rowCount;
|
||||
})
|
||||
.catch((error) => {
|
||||
// console.log(error.message);
|
||||
console.log(error.message);
|
||||
return error.message;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user