Show Watching and Completed anime

This commit is contained in:
Dragon Fire
2019-07-09 20:19:45 -04:00
parent 7fb02398bf
commit 9a381cc808
+5 -1
View File
@@ -159,7 +159,11 @@ module.exports = class AnimeCommand extends Command {
},
query: personalGraphQL
});
this.personalList = body.data.MediaListCollection.lists[0].entries;
const { lists } = body.data.MediaListCollection;
this.personalList = [
...lists.find(list => list.name === 'Watching'),
...lists.find(list => list.name === 'Completed')
];
setTimeout(() => { this.personalList = null; }, 3.6e+6);
return this.personalList;
}