Skip to content

Commit

Permalink
fix: re-add last.fm checks
Browse files Browse the repository at this point in the history
  • Loading branch information
katlyn committed Oct 10, 2023
1 parent 1c3322b commit 822edfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/lastFm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export const getTrack = async (): Promise<typeof cached> => {
}

// Automatically update the cache every 60 seconds
// setInterval(updateCache, 60e3)
setInterval(updateCache, 60e3)
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { updateCache } from "./config/lastFm"
import build from "./server"

// Initialize Last.fm cache
// updateCache().catch(console.error)
updateCache().catch(console.error)

const server = build({
logger: {
Expand Down

0 comments on commit 822edfb

Please sign in to comment.