refactor: decouple Anilist watch status updates from API endpoint to an asynchronous queue worker.
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user