mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:46:28 +00:00
update bugs
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user