Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit 5c5b1cd318 - Show all commits

View File

@ -63,16 +63,22 @@ class AnimeListTransformer extends AbstractTransformer {
'id' => $item['mal_id'],
'data' => [
'episode' => $item['data']['progress'],
'status' => self::statusMap[$item['data']['status']],
'score' => (array_key_exists('rating', $item['data']))
? $item['data']['rating'] * 2
: "",
// 'enable_rewatching' => $rewatching,
// 'times_rewatched' => $item['data']['reconsumeCount'],
// 'comments' => $item['data']['notes'],
]
];
if (array_key_exists('rating', $item['data']))
{
$map['data']['score'] = $item['data']['rating'] * 2;
}
if (array_key_exists('status', $item['data']))
{
$map['data']['status'] = self::statusMap[$item['data']['status']];
}
return $map;
}
}