GET V2Manga with internalIds return distinct array.
This commit is contained in:
parent
70993a692a
commit
27f823cfeb
@ -18,7 +18,7 @@ public partial class Server
|
|||||||
{
|
{
|
||||||
if(!requestParameters.TryGetValue("mangaIds", out string? mangaIdListStr))
|
if(!requestParameters.TryGetValue("mangaIds", out string? mangaIdListStr))
|
||||||
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.BadRequest, "Missing parameter 'mangaIds'.");
|
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.BadRequest, "Missing parameter 'mangaIds'.");
|
||||||
string[] mangaIdList = mangaIdListStr.Split(',');
|
string[] mangaIdList = mangaIdListStr.Split(',').Distinct().ToArray();
|
||||||
List<Manga> ret = new();
|
List<Manga> ret = new();
|
||||||
foreach (string mangaId in mangaIdList)
|
foreach (string mangaId in mangaIdList)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user