Skip to content

Commit

Permalink
Fix hasNextPage bug in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
majecty committed Apr 22, 2020
1 parent 3d29ef6 commit 1017f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/logic/utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export async function getSnapshot(params: {
type: sequelize.QueryTypes.SELECT
}
)).count ===
itemsPerPage + 1;
String(itemsPerPage + 1);

// The SQL query is copied from the query above.
const lastRow = await models.sequelize.query(
Expand Down

0 comments on commit 1017f89

Please sign in to comment.