mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 09:31:50 +01:00
I hate ESlint
This commit is contained in:
parent
108aacb01e
commit
7838adbd87
@ -135,15 +135,13 @@ export async function getLegacyMetaFromId(
|
||||
throw err;
|
||||
}
|
||||
|
||||
let imdbId = data.external_ids.find(
|
||||
(v) => v.provider === "imdb_latest",
|
||||
)?.external_id;
|
||||
let imdbId = data.external_ids.find((v) => v.provider === "imdb_latest")
|
||||
?.external_id;
|
||||
if (!imdbId)
|
||||
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;
|
||||
|
||||
let tmdbId = data.external_ids.find(
|
||||
(v) => v.provider === "tmdb_latest",
|
||||
)?.external_id;
|
||||
let tmdbId = data.external_ids.find((v) => v.provider === "tmdb_latest")
|
||||
?.external_id;
|
||||
if (!tmdbId)
|
||||
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user