chore: cache files overwritten during build

This commit is contained in:
Cory Dransfeldt 2024-04-03 21:30:45 -07:00
parent 8deff32772
commit 2d4efa2e74
No known key found for this signature in database
8 changed files with 9 additions and 14 deletions

View file

@ -70,7 +70,6 @@ const emojiMap = (genre, artist) => {
export default async () => {
const TV_KEY = Netlify.env.get("API_KEY_TRAKT");
const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
const scrobbles = getStore('scrobbles')
const headers = {
"Content-Type": "application/json",
@ -85,7 +84,7 @@ export default async () => {
},
})
.then((data) => {
if (data.ok) return data.json();
if (data.ok) return data?.json();
throw new Error('Something went wrong with the Trakt endpoint.');
})
.catch(err => {