Skip to content

Commit

Permalink
fix: convert confirmed from boolean to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed Mar 5, 2024
1 parent fd8ba91 commit 52b200c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/import-websocket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const update_account = async ({ account, accountInfo, blockCount }) => {
(block) =>
`(${block.amount}, ${block.balance}, ${block.height}, ${
block.local_timestamp
}, ${block.confirmed}, '${block.account}', ${
}, ${block.confirmed ? 1 : 0}, '${block.account}', ${
block.previous ? `'${block.previous}'` : null
}, '${block.representative}', '${block.link}', '${
block.link_account
Expand Down Expand Up @@ -139,7 +139,7 @@ const save_blocks = async () => {
(block) =>
`(${block.amount}, ${block.balance}, ${block.height}, ${
block.local_timestamp
}, ${block.confirmed}, '${block.account}', ${
}, ${block.confirmed ? 1 : 0}, '${block.account}', ${
block.previous ? `'${block.previous}'` : null
}, '${block.representative}', '${block.link}', '${
block.link_account
Expand Down

0 comments on commit 52b200c

Please sign in to comment.