fix: crash from stale references to removed sonarrSeries/radarrMovies
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s
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.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user