Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ledhed2222 committed Jul 28, 2023
1 parent de39c40 commit df1cd95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function fetchLedgerTransactions(client, ledgerIndex) {
transactions: true,
expand: true,
}, 10)
return { ledger_index: ledgerIndex, transactions: txResults }
return { ledger_index: ledgerIndex, transactions: txResults.ledger.transactions }
}

console.log(`<<< MANY TXS at ledger ${ledgerIndex}: [[ ${result.ledger.transactions.length} ]], processing per-tx...`)
Expand Down Expand Up @@ -90,7 +90,7 @@ async function insertIntoDB(txs) {
}
}

function formatTxForDB(tx) {
function formatTxForDB(Tx) {
const _Tx = {}

// Auto mapping for 1:1 fields (non RECORD)
Expand Down

0 comments on commit df1cd95

Please sign in to comment.