Merge pull request #464 from jikan-me/hotfix/manga_characters_endpoint1

🚑 Fixed issue with /v4/manga/{id}/characters endpoint
This commit is contained in:
Irfan (Nekomata) 2023-12-20 20:19:24 +05:00 committed by GitHub
commit bb71a7a9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ final class MangaCharactersLookupHandler extends RequestHandlerWithScraperCache
$id = $requestParams->get("id");
return $this->scraperService->findList(
$requestFingerPrint,
fn(MalClient $jikan, ?int $page = null) => $jikan->getMangaCharacters(new MangaCharactersRequest($id))
fn(MalClient $jikan, ?int $page = null) => ["characters" => $jikan->getMangaCharacters(new MangaCharactersRequest($id))]
);
}
}