From ba43a3d6bdf157fccb29f7b86415bb1b6bbb007d Mon Sep 17 00:00:00 2001 From: Gronod Date: Sat, 16 May 2026 00:11:24 +0100 Subject: [PATCH] fix: crash from stale references to removed sonarrSeries/radarrMovies Debug logging at line 389/393 still referenced radarrMovies.data and sonarrSeries.data which were removed in the previous commit. Updated to use moviesMap/seriesMap built from embedded queue/history objects. --- server/routes/dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/dashboard.js b/server/routes/dashboard.js index 77fe89b..bd6538f 100644 --- a/server/routes/dashboard.js +++ b/server/routes/dashboard.js @@ -385,12 +385,12 @@ router.get('/user-downloads', async (req, res) => { console.log(`[Dashboard] Sonarr tag map:`, Array.from(sonarrTagMap.entries())); console.log(`[Dashboard] Radarr tag map:`, Array.from(radarrTagMap.entries())); - // Show movies/series tagged for this user - const userMovies = radarrMovies.data.filter(m => { + // Show movies/series tagged for this user (from embedded objects in queue/history) + const userMovies = Array.from(moviesMap.values()).filter(m => { const tag = extractUserTag(m.tags, radarrTagMap); return tag && tagMatchesUser(tag, username); }); - const userSeries = sonarrSeries.data.filter(s => { + const userSeries = Array.from(seriesMap.values()).filter(s => { const tag = extractUserTag(s.tags, sonarrTagMap); return tag && tagMatchesUser(tag, username); });