Skip to content

Commit

Permalink
minor fix to solve the initialization issue with the receipts db
Browse files Browse the repository at this point in the history
  • Loading branch information
devendra-shardeum committed Jan 7, 2025
1 parent 3a63662 commit 679336a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/archiver_data_patcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const runProgram = async (): Promise<void> => {
console.log(`archiver ${archiver.ip}:${archiver.port} failed to respond`)
break
}
const receiptsCountByCycles = await ReceiptDB.queryReceiptCountByCycles(i, nextEnd)
const receiptsCountByCycles = await ReceiptDB.queryReceiptCountByCycles(i, nextEnd) || [];
// console.log(receiptsCountByCycles)
for (let j = i; j <= nextEnd; j++) {
const downloadedReceipts = downloadedReceiptCountByCycles.receipts.filter((d) => d.cycle === j)
Expand Down

0 comments on commit 679336a

Please sign in to comment.