aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Data')
-rw-r--r--src/lib/Data/AniList/forum.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Data/AniList/forum.ts b/src/lib/Data/AniList/forum.ts
index a96b74ca..b2467c9e 100644
--- a/src/lib/Data/AniList/forum.ts
+++ b/src/lib/Data/AniList/forum.ts
@@ -11,6 +11,9 @@ export interface Thread {
medium: string;
};
}[];
+ categories: {
+ name: string;
+ }[];
}
export interface ThreadPage {
@@ -35,7 +38,7 @@ const threadPage = async (page: number, userId: number): Promise<ThreadPage> =>
},
body: JSON.stringify({
query: `{ Page(perPage: 50, page: ${page}) {
- threads(userId: ${userId}) { id title createdAt mediaCategories { coverImage { extraLarge medium } } }
+ threads(userId: ${userId}) { id title createdAt mediaCategories { coverImage { extraLarge medium } } categories { name } }
pageInfo { hasNextPage }
} }`
})