More import script updates and fixes, better import_history tracking

This commit is contained in:
2025-01-31 13:12:43 -05:00
parent a867117c3c
commit 1c932e0df5
6 changed files with 41 additions and 14 deletions

View File

@@ -329,7 +329,7 @@ async function importPurchaseOrders(prodConnection, localConnection, incremental
`;
const result = await localConnection.query(query, values.flat());
recordsAdded += result.affectedRows - result.changedRows;
recordsAdded += result.affectedRows - (2 * result.changedRows);
recordsUpdated += result.changedRows;
}