Skip to content

Commit a08896b

Browse files
committed
Fix hasNextPage bug in snapshot
1 parent 3d29ef6 commit a08896b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/models/logic/utxo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ export async function getSnapshot(params: {
506506
transaction,
507507
type: sequelize.QueryTypes.SELECT
508508
}
509-
)).count ===
510-
itemsPerPage + 1;
509+
)).count === String(itemsPerPage + 1);
511510

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

0 commit comments

Comments
 (0)