ConnectorController.AddMangaToContext existing also check for connector

This commit is contained in:
Glax 2024-12-16 22:55:52 +01:00
parent 60b128fc30
commit ae11c31b9d

View File

@ -93,7 +93,8 @@ public class ConnectorController(PgsqlContext context) : Controller
{
if (manga is null)
return null;
Manga? existing = context.Manga.FirstOrDefault(m => m.ConnectorId == manga.ConnectorId);
Manga? existing = context.Manga.FirstOrDefault(m =>
m.MangaConnector == manga.MangaConnector && m.ConnectorId == manga.ConnectorId);
if (tags is not null)
{