Skip to content

Commit df1cd95

Browse files
committed
fixes
1 parent de39c40 commit df1cd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function fetchLedgerTransactions(client, ledgerIndex) {
5252
transactions: true,
5353
expand: true,
5454
}, 10)
55-
return { ledger_index: ledgerIndex, transactions: txResults }
55+
return { ledger_index: ledgerIndex, transactions: txResults.ledger.transactions }
5656
}
5757

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

93-
function formatTxForDB(tx) {
93+
function formatTxForDB(Tx) {
9494
const _Tx = {}
9595

9696
// Auto mapping for 1:1 fields (non RECORD)

0 commit comments

Comments
 (0)