kodadot / stick

GraphQL service for Uniques and Assets on Asset Hubs
MIT License
4 stars 10 forks source link

Price not updated in `lastEvent` query #93

Open preschian opened 1 year ago

preschian commented 1 year ago

image

related issue: https://github.com/kodadot/nft-gallery/issues/6739

vikiival commented 1 year ago

Can 'expand the query? Or share it?

preschian commented 1 year ago

Use this query to compare the price

query results
```graphql query MyQuery { lastEvent(limit: 1, interaction: "LIST") { id name value } } ``` ```json { "data": { "lastEvent": [ { "id": "u-117-1549", "name": "InvArch Access Pass - Community", "value": "5114500000000" } ] } } ```
```graphql query MyQuery { nftEntityById(id: "u-117-1549") { id name price } } ``` ```json { "data": { "nftEntityById": { "id": "u-117-1549", "name": "InvArch Access Pass - Community", "price": "2962550000000" } } } ```

From the query above, we can see a different value/price 5114500000000 vs 2962550000000 in the same id

vikiival commented 1 year ago

Can 'expand the query?

I meant that: is the list event is in the nftEntity array?

preschian commented 1 year ago

Hmmm, I don't quite understand the question. Is it code on the indexer? Because I'm still not familiar code in the indexer