codechain-indexer
codechain-indexer copied to clipboard
Fix snapshot pagination bug
- I checked the result of the query by creating a small JavaScript program. Its result was
{ count: '2' }. - I found that there were no point that deserializing the query parameter. I checked it by printing the lastEvaluatedKey after
JSON.parse. It can handle a query like `curl -vG 'localhost:9001/api/snapshot?assetType=30a62cfe15b1993b26f95d86234da236ec4e02c2&date=2020-04-20' --data-urlencode 'lastEvaluatedKey=[0,0]'