From e006d406b62e28d70a7a4ba6fec5546484662dee Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 9 Jul 2019 20:14:41 -0400 Subject: [PATCH] Fix --- commands/search/anime.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/commands/search/anime.js b/commands/search/anime.js index c55bcdda..8d48acc5 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -44,10 +44,12 @@ const resultGraphQL = stripIndents` const personalGraphQL = stripIndents` query ($name: String, $type: MediaType) { MediaListCollection(userName: $name, type: $type) { - entries { - mediaId - score(format: POINT_10) - progress + lists { + entries { + mediaId + score(format: POINT_10) + progress + } } } } @@ -157,7 +159,7 @@ module.exports = class AnimeCommand extends Command { }, query: personalGraphQL }); - this.personalList = body.data.MediaListCollection.entries; + this.personalList = body.data.MediaListCollection.lists[0].entries; setTimeout(() => { this.personalList = null; }, 3.6e+6); return this.personalList; }