fix: don't return data we don't need
This commit is contained in:
parent
b8bb88d758
commit
2d6bca5c65
2 changed files with 2 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "18.8.9",
|
"version": "18.8.10",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -152,14 +152,6 @@ export default async function () {
|
||||||
show_tmdb_id: show['tmdb_id'],
|
show_tmdb_id: show['tmdb_id'],
|
||||||
collected: show['collected'],
|
collected: show['collected'],
|
||||||
favorite: show['favorite']
|
favorite: show['favorite']
|
||||||
})))).sort((a, b) => a['name'].localeCompare(b['name'])),
|
})))).sort((a, b) => a['name'].localeCompare(b['name']))
|
||||||
collection: formatEpisodeData(collectedShows.flatMap(show => show['episodes'].map(episode => ({
|
|
||||||
...episode,
|
|
||||||
show_title: show['title'],
|
|
||||||
show_tmdb_id: show['tmdb_id'],
|
|
||||||
collected: show['collected'],
|
|
||||||
favorite: show['favorite']
|
|
||||||
})))),
|
|
||||||
toWatch
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in a new issue