Fix character/staff queries — remove dateOfDeath, fix MediaEdge role field

- 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
This commit is contained in:
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ
2026-06-25 09:18:45 +05:30
parent d1dec20788
commit 4509c0add3
+1 -4
View File
@@ -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 }
}
}