diff --git a/src/controllers/auth/anilist/getWatchingTitles.ts b/src/controllers/auth/anilist/getWatchingTitles.ts index 194ff94..c6917cd 100644 --- a/src/controllers/auth/anilist/getWatchingTitles.ts +++ b/src/controllers/auth/anilist/getWatchingTitles.ts @@ -35,6 +35,7 @@ const GetWatchingTitlesQuery = graphql(` id progress status + updatedAt } nextAiringEpisode { timeUntilAiring @@ -122,6 +123,7 @@ type GetWatchingTitles = { | "DROPPED" | "PAUSED" | null; + updatedAt: number; } | null; nextAiringEpisode: { timeUntilAiring: number; diff --git a/src/types/title/index.ts b/src/types/title/index.ts index 98cbc0e..254c253 100644 --- a/src/types/title/index.ts +++ b/src/types/title/index.ts @@ -18,6 +18,7 @@ export const Title = z.object({ status: z.nullable(WatchStatus), progress: NullableNumberSchema, id: z.number().int(), + updatedAt: z.number().int().openapi({ format: "int64" }), }), ), countryOfOrigin: countryCodeSchema,