From 1abac0ac0e8d08aced7e1ab909e239074a7bafb2 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 30 Jul 2021 09:37:06 -0400 Subject: [PATCH] Sort libraryEvents so watch history is in correct order --- src/AnimeClient/API/Kitsu/Queries/GetUserHistory.graphql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AnimeClient/API/Kitsu/Queries/GetUserHistory.graphql b/src/AnimeClient/API/Kitsu/Queries/GetUserHistory.graphql index eb569d6d..4dd35bc2 100644 --- a/src/AnimeClient/API/Kitsu/Queries/GetUserHistory.graphql +++ b/src/AnimeClient/API/Kitsu/Queries/GetUserHistory.graphql @@ -1,6 +1,9 @@ query ($slug: String!) { findProfileBySlug(slug: $slug) { - libraryEvents(first: 100, kind: [PROGRESSED, UPDATED]) { + libraryEvents(first: 100, kind: [PROGRESSED, UPDATED], sort: [{ + direction: DESCENDING, + on: UPDATED_AT, + }]) { nodes { id changedData