mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-15 05:35:07 +01:00
Fix linting errors
This commit is contained in:
parent
e1b9393584
commit
fe0d2c91a4
@ -135,13 +135,15 @@ export async function getLegacyMetaFromId(
|
|||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
let imdbId = data.external_ids.find((v) => v.provider === "imdb_latest")
|
let imdbId = data.external_ids.find(
|
||||||
?.external_id;
|
(v) => v.provider === "imdb_latest",
|
||||||
|
)?.external_id;
|
||||||
if (!imdbId)
|
if (!imdbId)
|
||||||
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;
|
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;
|
||||||
|
|
||||||
let tmdbId = data.external_ids.find((v) => v.provider === "tmdb_latest")
|
let tmdbId = data.external_ids.find(
|
||||||
?.external_id;
|
(v) => v.provider === "tmdb_latest",
|
||||||
|
)?.external_id;
|
||||||
if (!tmdbId)
|
if (!tmdbId)
|
||||||
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
|
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user