From bd8efbec9369129343a5c990de547a95753e9075 Mon Sep 17 00:00:00 2001 From: pushrbx Date: Mon, 18 Dec 2023 16:05:50 +0000 Subject: [PATCH] fixed issue with /v4/manga/{id}/characters endpoint --- app/Features/MangaCharactersLookupHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Features/MangaCharactersLookupHandler.php b/app/Features/MangaCharactersLookupHandler.php index c1a1998..69a2fda 100644 --- a/app/Features/MangaCharactersLookupHandler.php +++ b/app/Features/MangaCharactersLookupHandler.php @@ -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))] ); } }