Added tags to chapters in API.
This commit is contained in:
@@ -52,6 +52,13 @@ const releaseFields = `
|
||||
duration
|
||||
title
|
||||
description
|
||||
tags: chaptersTags {
|
||||
tag {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
poster: chaptersPosterByChapterId {
|
||||
media {
|
||||
id
|
||||
@@ -204,6 +211,7 @@ function curateGraphqlRelease(release) {
|
||||
tags: release.tags.map(tag => tag.tag),
|
||||
...(release.chapters && { chapters: release.chapters.map(chapter => ({
|
||||
...chapter,
|
||||
tags: chapter.tags.map(tag => tag.tag),
|
||||
poster: chapter.poster?.media || null,
|
||||
photos: chapter.photos.map(photo => photo.media),
|
||||
})) }),
|
||||
|
||||
Reference in New Issue
Block a user