refactor: decouple Anilist watch status updates from API endpoint to an asynchronous queue worker.

This commit is contained in:
2025-12-16 08:28:33 -05:00
parent 1501aff3b6
commit 80a6f67ead
5 changed files with 43 additions and 80 deletions

View File

@@ -9,9 +9,11 @@ import type { QueueName } from "./queueName";
export type QueueBody = {
ANILIST_UPDATES: {
deviceId: string;
watchStatus: WatchStatus | null;
titleId: number;
[AnilistUpdateType.UpdateWatchStatus]: {
titleId: number;
watchStatus: WatchStatus | null;
aniListToken: string;
};
updateType: AnilistUpdateType;
};
NEW_EPISODE: { aniListId: number; episodeNumber: number };