perf(blacklist): remove media type constraint from existing blacklist entry query

Doesn't make sense to keep it because tmdbid has a unique constraint on it
This commit is contained in:
Ben Beauchamp
2025-02-03 19:34:13 -06:00
parent 66250b17ca
commit 307a67ae76

View File

@@ -132,7 +132,7 @@ class BlacklistedTagProcessor implements RunnableScanner<StatusBase> {
for (const entry of response.results) {
const blacklistEntry = await blacklistRepository.findOne({
where: { tmdbId: entry.id, mediaType },
where: { tmdbId: entry.id },
});
if (blacklistEntry != null) {