From 1017f89599b8348de4eff6adcd7a98f62b78c89e Mon Sep 17 00:00:00 2001 From: Park Juhyung Date: Wed, 22 Apr 2020 12:21:13 +0900 Subject: [PATCH] Fix hasNextPage bug in snapshot --- src/models/logic/utxo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/logic/utxo.ts b/src/models/logic/utxo.ts index fbe2462..67ee7e3 100644 --- a/src/models/logic/utxo.ts +++ b/src/models/logic/utxo.ts @@ -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(