Include Filename in Chapter DTO

This commit is contained in:
2025-09-27 22:41:59 +02:00
parent fdde64021b
commit 82489f3870
3 changed files with 15 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ public class QueryController(MangaContext context) : Controller
IEnumerable<MangaConnectorId> ids = chapter.MangaConnectorIds.Select(id =>
new MangaConnectorId(id.Key, id.MangaConnectorName, id.ObjId, id.WebsiteUrl, id.UseForDownload));
return TypedResults.Ok(new Chapter(chapter.Key, chapter.ParentMangaId, chapter.VolumeNumber, chapter.ChapterNumber, chapter.Title,ids, chapter.Downloaded));
return TypedResults.Ok(new Chapter(chapter.Key, chapter.ParentMangaId, chapter.VolumeNumber, chapter.ChapterNumber, chapter.Title,ids, chapter.Downloaded, chapter.FileName));
}
/// <summary>