Skip to content

Commit

Permalink
feat: home page list are sorted by last updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Feb 2, 2025
1 parent f85dbac commit 642aa08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/controllers/services/anilist/anilist_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class AnilistAuth extends GetxController {

const query = '''
query GetUserAnimeList(\$userId: Int) {
MediaListCollection(userId: \$userId, type: ANIME) {
MediaListCollection(userId: \$userId, type: ANIME, sort: UPDATED_TIME) {
lists {
name
entries {
Expand Down Expand Up @@ -374,8 +374,8 @@ class AnilistAuth extends GetxController {
);

if (response.statusCode == 200) {
snackBar(
"${isAnime ? 'Anime' : 'Manga'} Tracked to ${isAnime ? 'Episode' : 'Chapter'} $progress Successfully!");
// snackBar(
// "${isAnime ? 'Anime' : 'Manga'} Tracked to ${isAnime ? 'Episode' : 'Chapter'} $progress Successfully!");
final newMedia = currentMedia.value
..episodeCount = progress.toString()
..watchingStatus = status
Expand Down Expand Up @@ -404,7 +404,7 @@ class AnilistAuth extends GetxController {

const query = '''
query GetUserMangaList(\$userId: Int) {
MediaListCollection(userId: \$userId, type: MANGA) {
MediaListCollection(userId: \$userId, type: MANGA, sort: UPDATED_TIME) {
lists {
name
entries {
Expand Down

0 comments on commit 642aa08

Please sign in to comment.