update bugs

This commit is contained in:
2025-07-04 10:57:33 +07:00
parent 93b6bd94ca
commit fec5209c83
@@ -320,7 +320,7 @@ const insertLoadingBalance = async (
.insert(data)
.returning('i_load_balance')
.then((resp) => {
let id = resp[0];
let id = typeof resp[0] === 'object' ? resp[0].i_load_balance : resp[0];
let loadDetail = [];
detail.forEach((element) => {
loadDetail.push({
@@ -352,7 +352,7 @@ const insertLoadingBalance = async (
.insert(data);
})
.then((history) => {
let id = history[0];
let id = typeof history[0] === 'object' ? history[0].i_load_balance : history[0];
let loadDetail = [];
detail.forEach((element) => {
loadDetail.push({