2
0

GET V2Manga with internalIds return distinct array.

This commit is contained in:
Glax 2024-10-20 01:06:24 +02:00
parent 70993a692a
commit 27f823cfeb

View File

@ -18,7 +18,7 @@ public partial class Server
{
if(!requestParameters.TryGetValue("mangaIds", out string? mangaIdListStr))
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.BadRequest, "Missing parameter 'mangaIds'.");
string[] mangaIdList = mangaIdListStr.Split(',');
string[] mangaIdList = mangaIdListStr.Split(',').Distinct().ToArray();
List<Manga> ret = new();
foreach (string mangaId in mangaIdList)
{