codechain-indexer icon indicating copy to clipboard operation
codechain-indexer copied to clipboard

Fix snapshot pagination bug

Open majecty opened this issue 5 years ago • 0 comments

  • 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]'

majecty avatar Apr 22 '20 03:04 majecty