Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Fixed GetTags having wrong return type defined (#954)

Joseph Milazzo9d1d17249d5b
diff --git a/API/Controllers/MetadataController.cs b/API/Controllers/MetadataController.cs
index 5efcfb06e..4aa13691f 100644
--- a/API/Controllers/MetadataController.cs
+++ b/API/Controllers/MetadataController.cs
@@ -62,7 +62,7 @@ public class MetadataController : BaseApiController
/// <param name="libraryIds">String separated libraryIds or null for all tags</param>
/// <returns></returns>
[HttpGet("tags")]
- public async Task<ActionResult<IList<PersonDto>>> GetAllTags(string? libraryIds)
+ public async Task<ActionResult<IList<TagDto>>> GetAllTags(string? libraryIds)
{
var ids = libraryIds?.Split(",").Select(int.Parse).ToList();
if (ids != null && ids.Count > 0)