tr-vs / realist

2 stars 3 forks source link

Timing #118

Closed tr-vs closed 10 months ago

tr-vs commented 10 months ago

before, we would update the nowplaying post every time the backend process restarted. also, we would generate three recommended songs every time the sidebar component rendered. this would cause us to be rate limited by spotify. the fix to both of these problems would be to call the respective functions to update both items in the database once a day. we have a single doc in the database which specifies when we should update it. then, we check every 10 minutes if we have passed that time. if we did, update the next time we should update.

netlify[bot] commented 10 months ago

Deploy Preview for soft-kitten-e8da92 ready!

Name Link
Latest commit 1cf7c2c02ad64b65877f83ad41569884a9de5bd8
Latest deploy log https://app.netlify.com/sites/soft-kitten-e8da92/deploys/6568fb76a773ac0007ced673
Deploy Preview https://deploy-preview-118--soft-kitten-e8da92.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.