mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 11:56:27 +00:00
update pooling
This commit is contained in:
@@ -39,7 +39,7 @@ const insertDataPooling = async (table, data, cardno) => {
|
||||
await trx.rollback();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
} else if (table == "invalid") {
|
||||
await dbPooling.transaction(async (trx) => {
|
||||
try {
|
||||
await trx(table).insert(data);
|
||||
@@ -54,6 +54,8 @@ const insertDataPooling = async (table, data, cardno) => {
|
||||
await trx.rollback();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
await dbPooling(table).insert(data);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user