Fixed serie poster query, fixed movie route pointing to series.
This commit is contained in:
parent
e527d57758
commit
94d333267a
|
@ -1 +1 @@
|
||||||
export default '/serie/@serieId/*';
|
export default '/movie/@movieId/*';
|
||||||
|
|
|
@ -134,7 +134,7 @@ export async function fetchSeriesById(serieIds, reqUser) {
|
||||||
const serieActors = actors.filter((actor) => actor.serie_id === serieId);
|
const serieActors = actors.filter((actor) => actor.serie_id === serieId);
|
||||||
const serieDirectors = directors.filter((director) => director.release_id === serieId);
|
const serieDirectors = directors.filter((director) => director.release_id === serieId);
|
||||||
const serieTags = tags.filter((tag) => tag.serie_id === serieId);
|
const serieTags = tags.filter((tag) => tag.serie_id === serieId);
|
||||||
const seriePosters = posters.filter((poster) => poster.serie_id === serieId);
|
const seriePoster = posters.find((poster) => poster.serie_id === serieId);
|
||||||
const seriePhotos = photos.filter((photo) => photo.release_id === serieId);
|
const seriePhotos = photos.filter((photo) => photo.release_id === serieId);
|
||||||
const serieStashes = stashes.filter((stash) => stash.serie_id === serieId);
|
const serieStashes = stashes.filter((stash) => stash.serie_id === serieId);
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ export async function fetchSeriesById(serieIds, reqUser) {
|
||||||
actors: serieActors,
|
actors: serieActors,
|
||||||
directors: serieDirectors,
|
directors: serieDirectors,
|
||||||
tags: serieTags,
|
tags: serieTags,
|
||||||
posters: seriePosters,
|
poster: seriePoster,
|
||||||
photos: seriePhotos,
|
photos: seriePhotos,
|
||||||
stashes: serieStashes,
|
stashes: serieStashes,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue