Fix linting errors

This commit is contained in:
William Oldham 2024-04-20 10:51:37 +01:00
parent e1b9393584
commit fe0d2c91a4

View file

@ -135,13 +135,15 @@ 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;