Fix /Manga/WithTag

This commit is contained in:
2025-10-14 19:25:34 +02:00
parent acd885f1ab
commit f1e3d88c82

View File

@@ -329,7 +329,7 @@ public class MangaController(MangaContext context) : Controller
public async Task<Results<Ok<List<Manga>>, NotFound<string>, InternalServerError>> GetMangasWithTag (string Tag)
{
if (await context.MangaIncludeAll()
.Where(m => m.MangaTags.Any(t => t.Tag.Equals(Tag, StringComparison.InvariantCultureIgnoreCase)))
.Where(m => m.MangaTags.Any(t => t.Tag == Tag))
.OrderBy(m => m.Name)
.ToListAsync(HttpContext.RequestAborted) is not { } result)
return TypedResults.InternalServerError();