chore: scrobbling
This commit is contained in:
parent
c2f0b4dce9
commit
65b9217263
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,6 @@ const weekStop = () => {
|
||||||
return nextSunday.toMillis()
|
return nextSunday.toMillis()
|
||||||
}
|
}
|
||||||
|
|
||||||
weekStop()
|
|
||||||
|
|
||||||
export default async (request, context) => {
|
export default async (request, context) => {
|
||||||
const ACCOUNT_ID_PLEX = Netlify.env.get("ACCOUNT_ID_PLEX");
|
const ACCOUNT_ID_PLEX = Netlify.env.get("ACCOUNT_ID_PLEX");
|
||||||
const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
|
const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
|
||||||
|
@ -92,6 +90,8 @@ export default async (request, context) => {
|
||||||
}
|
}
|
||||||
await artists.setJSON(artistKey, JSON.stringify(artistData))
|
await artists.setJSON(artistKey, JSON.stringify(artistData))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weekStop()
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(JSON.stringify({
|
return new Response(JSON.stringify({
|
||||||
|
|
Reference in a new issue