mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 10:15:10 +00:00
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:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user