mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 04:41:49 +01:00
Fixed a mistake I made.
This commit is contained in:
parent
893e9e0ae6
commit
55bb3c4574
@ -100,12 +100,6 @@ export function progressResponsesToEntries(responses: ProgressResponse[]) {
|
||||
}
|
||||
|
||||
if (item.type === "show" && v.season.id && v.episode.id) {
|
||||
if (
|
||||
!item.seasons[v.season.id] ||
|
||||
(item.episodes[v.episode.id] &&
|
||||
new Date(v.updatedAt).getTime() >
|
||||
item.episodes[v.episode.id].updatedAt)
|
||||
) {
|
||||
item.seasons[v.season.id] = {
|
||||
id: v.season.id,
|
||||
number: v.season.number ?? 0,
|
||||
@ -123,7 +117,6 @@ export function progressResponsesToEntries(responses: ProgressResponse[]) {
|
||||
updatedAt: new Date(v.updatedAt).getTime(),
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return items;
|
||||
|
Loading…
Reference in New Issue
Block a user