Replies: 2 comments 1 reply
-
@adam-sanz I have to see the code, push it to GitHub and leave a link here. |
Beta Was this translation helpful? Give feedback.
-
Hi @adam-sanz It will take an amount of time for Moralis to read a change on the blockchain and index it. After that, when you make a query, you should see the correct value. I am guessing that you are not giving Moralis enough time to notice that a value should be changed. So make a change to the price, then wait for Moralis catch the emitted event and change the previously indexed value. I am not sure how long you will have to wait. Could be 10 minutes, or 1 hour. I suspect it has to do with how many block confirmations have passed since you change the value. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I am running into an error when I update the price of an NFT. When I first mint and list the NFT, the price on the front end displays as expected (0.1ETH).
If i update the price to 50ETH -> refresh front end and the price remains 0.1ETH (ActiveItem in Moralis DB is the NFT costing 0.1ETH)
If i update the price to 60ETH -> refresh the front end and the price is 50ETH (ActiveItem in Moralis DB is the NFT costing 50ETH)
It seems to be one step behind. In the Moralis DB, the active item is always one step behind so I'm assuming it's that. Do you know how you would set the ActiveItem to always be the latest revision to the NFT?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions