Version 5.1 - All the GraphQL #32
@ -96,7 +96,7 @@ final class AnimeListTransformer extends AbstractTransformer {
|
|||||||
'titles' => $titles,
|
'titles' => $titles,
|
||||||
'slug' => $anime['slug'],
|
'slug' => $anime['slug'],
|
||||||
'show_type' => (string)StringType::from($anime['subtype'])->upperCaseFirst(),
|
'show_type' => (string)StringType::from($anime['subtype'])->upperCaseFirst(),
|
||||||
'cover_image' => $anime['posterImage']['views'][1]['url'],
|
'cover_image' => $anime['posterImage']['views'][1]['url'] ?? '/public/images/placeholder.png',
|
||||||
'genres' => $genres,
|
'genres' => $genres,
|
||||||
'streaming_links' => $streamingLinks,
|
'streaming_links' => $streamingLinks,
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user