From 4509c0add315bb58ddd04f512b44c991acb211d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CA=9C=C9=AA=C9=B4=E1=B4=87=C9=AA=20N=E1=B4=8F=E1=B4=9C?= =?UTF-8?q?=E1=B4=A2=E1=B4=87=C9=B4?= <157171073+Shineii86@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:18:45 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20character/staff=20queries=20=E2=80=94=20r?= =?UTF-8?q?emove=20dateOfDeath,=20fix=20MediaEdge=20role=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Character: removed dateOfDeath (not in AniList schema), changed role→characterRole - Staff: removed dateOfDeath, removed invalid role field from staffMedia edges - Fixes 400 errors on /api/character/:id and /api/staff/:id --- src/helpers/anilist.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/helpers/anilist.js b/src/helpers/anilist.js index dea28e6..fa99e2f 100644 --- a/src/helpers/anilist.js +++ b/src/helpers/anilist.js @@ -806,12 +806,11 @@ const getCharacterInfo = async (id) => { image { large medium } description gender favourites siteUrl dateOfBirth { year month day } - dateOfDeath { year month day } age bloodType media(perPage: 25, sort: POPULARITY_DESC) { pageInfo { total currentPage lastPage hasNextPage perPage } edges { - role + characterRole node { id title { romaji english } coverImage { large } format episodes status meanScore } } } @@ -838,12 +837,10 @@ const getStaffInfo = async (id) => { image { large medium } description gender favourites siteUrl dateOfBirth { year month day } - dateOfDeath { year month day } age homeTown yearsActive staffMedia(perPage: 25, sort: POPULARITY_DESC) { pageInfo { total currentPage lastPage hasNextPage perPage } edges { - role node { id title { romaji english } coverImage { large } format episodes status meanScore } } }