I hate ESlint

This commit is contained in:
Cooper Ransom 2024-04-22 14:22:46 -04:00
parent 108aacb01e
commit 7838adbd87

View File

@ -135,15 +135,13 @@ export async function getLegacyMetaFromId(
throw err; throw err;
} }
let imdbId = data.external_ids.find( let imdbId = data.external_ids.find((v) => v.provider === "imdb_latest")
(v) => v.provider === "imdb_latest", ?.external_id;
)?.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( let tmdbId = data.external_ids.find((v) => v.provider === "tmdb_latest")
(v) => v.provider === "tmdb_latest", ?.external_id;
)?.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;