fixed issue with /v4/manga/{id}/characters endpoint

This commit is contained in:
pushrbx 2023-12-18 16:05:50 +00:00 committed by GitHub
parent 3eb1f347cc
commit bd8efbec93
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))]
);
}
}