Trello power Up and Database refreshing

Hi,
I created a Trello power-up which connect to an Mongo Atlas Database (with a node server), and creates a burndown. It is work fine.
But…

When I make a change in my database (in the MongoDB Atlas Site), the burndown does not update, even if I close the power up and restart it. The only way is to make a change in the code and restart the power up. Thus it relaunches the node server and detect the changes. How could I make it to look for changes (for example every 5 seconds) and update the burndown?

Thanks

You could use a third-party web cron service to regularly hit an end-point you define, which runs your code to update it. But it might be more efficient to get the power-up to request the latest changes every time it’s opened, depending on how it works.