Skip to content

Commit

Permalink
refactor: episode is now optional on base servarr
Browse files Browse the repository at this point in the history
  • Loading branch information
OwsleyJr committed Nov 26, 2022
1 parent d66d98d commit b33668f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion server/api/servarr/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface QueueItem {
protocol: string;
downloadClient: string;
indexer: string;
episode: EpisodeResult;
episode?: EpisodeResult;
id: number;
}

Expand Down
7 changes: 1 addition & 6 deletions server/lib/downloadtracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ class DownloadTracker {
status: item.status,
timeLeft: item.timeleft,
title: item.title,
episode: {
seasonNumber: item.episode.seasonNumber,
episodeNumber: item.episode.episodeNumber,
absoluteEpisodeNumber: item.episode.absoluteEpisodeNumber,
id: item.episode.id,
},
episode: item.episode,
}));

if (queueItems.length > 0) {
Expand Down

0 comments on commit b33668f

Please sign in to comment.