This commit is contained in:
Dragon Fire
2019-07-09 20:14:41 -04:00
parent eb07f55bd1
commit e006d406b6
+7 -5
View File
@@ -44,10 +44,12 @@ const resultGraphQL = stripIndents`
const personalGraphQL = stripIndents` const personalGraphQL = stripIndents`
query ($name: String, $type: MediaType) { query ($name: String, $type: MediaType) {
MediaListCollection(userName: $name, type: $type) { MediaListCollection(userName: $name, type: $type) {
entries { lists {
mediaId entries {
score(format: POINT_10) mediaId
progress score(format: POINT_10)
progress
}
} }
} }
} }
@@ -157,7 +159,7 @@ module.exports = class AnimeCommand extends Command {
}, },
query: personalGraphQL query: personalGraphQL
}); });
this.personalList = body.data.MediaListCollection.entries; this.personalList = body.data.MediaListCollection.lists[0].entries;
setTimeout(() => { this.personalList = null; }, 3.6e+6); setTimeout(() => { this.personalList = null; }, 3.6e+6);
return this.personalList; return this.personalList;
} }