no interval or timeout

This commit is contained in:
2026-01-23 08:58:22 +00:00
parent a081549f2d
commit a6725bf37d
2 changed files with 0 additions and 7 deletions

View File

@@ -17,11 +17,6 @@ export const useSongsStore = defineStore("songs", () => {
const songsCount = computed(() => songs.value.length);
fetchSongs();
let refreshId = null;
refreshId = setTimeout(fetchSongs, 120000);
async function fetchSongs() {
try {
const res = await axios.get("/api/spotify/recent");
@@ -29,8 +24,6 @@ export const useSongsStore = defineStore("songs", () => {
throw new Error("Invalid response from Spotify API");
}
songs.value = res.data;
refreshId = setTimeout(fetchSongs, 120000);
console.log("lol");
} catch (err) {
console.error("Cannot connect to Spotify API", err);
}