mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 18:25:11 +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 }
|
image { large medium }
|
||||||
description gender favourites siteUrl
|
description gender favourites siteUrl
|
||||||
dateOfBirth { year month day }
|
dateOfBirth { year month day }
|
||||||
dateOfDeath { year month day }
|
|
||||||
age bloodType
|
age bloodType
|
||||||
media(perPage: 25, sort: POPULARITY_DESC) {
|
media(perPage: 25, sort: POPULARITY_DESC) {
|
||||||
pageInfo { total currentPage lastPage hasNextPage perPage }
|
pageInfo { total currentPage lastPage hasNextPage perPage }
|
||||||
edges {
|
edges {
|
||||||
role
|
characterRole
|
||||||
node { id title { romaji english } coverImage { large } format episodes status meanScore }
|
node { id title { romaji english } coverImage { large } format episodes status meanScore }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -838,12 +837,10 @@ const getStaffInfo = async (id) => {
|
|||||||
image { large medium }
|
image { large medium }
|
||||||
description gender favourites siteUrl
|
description gender favourites siteUrl
|
||||||
dateOfBirth { year month day }
|
dateOfBirth { year month day }
|
||||||
dateOfDeath { year month day }
|
|
||||||
age homeTown yearsActive
|
age homeTown yearsActive
|
||||||
staffMedia(perPage: 25, sort: POPULARITY_DESC) {
|
staffMedia(perPage: 25, sort: POPULARITY_DESC) {
|
||||||
pageInfo { total currentPage lastPage hasNextPage perPage }
|
pageInfo { total currentPage lastPage hasNextPage perPage }
|
||||||
edges {
|
edges {
|
||||||
role
|
|
||||||
node { id title { romaji english } coverImage { large } format episodes status meanScore }
|
node { id title { romaji english } coverImage { large } format episodes status meanScore }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user