This commit is contained in:
2023-02-21 19:19:07 +07:00
parent 4f03433bb2
commit 0d29175942
@@ -1,5 +1,3 @@
const winston = require('../../helpers/winston.logger');
const knex = require('../../../infrastructure/database/knex');
// CHECK CARD NUMBER
@@ -380,12 +378,8 @@ const insertLoadingBalance = async (
c_flag: flag,
});
})
.then(() => {
trx.commit;
})
.catch((err) => {
trx.rollback;
});
.then(trx.commit)
.catch(trx.rollback);
})
.then((result) => {
// console.log(result);