diff --git a/components/stats/TrackRetention.vue b/components/stats/TrackRetention.vue index 1096e43..ef7fe14 100644 --- a/components/stats/TrackRetention.vue +++ b/components/stats/TrackRetention.vue @@ -12,13 +12,14 @@ const { error, data: tracks } = await useLazyAsyncData( - `longest-standing-tracks-${playlistId}`, + `track-retention-${playlistId}`, async () => { + const now = Date.now(); + const { tracks } = await $fetch( `https://raw.githubusercontent.com/mackorone/spotify-playlist-archive/main/playlists/cumulative/${playlistId}.json`, { parseResponse: JSON.parse } ); - const now = Date.now(); return tracks .map((track) => { @@ -42,16 +43,3 @@ const { - -