feat: retry AniList "update watch status" request if it fails

This commit is contained in:
2024-09-06 17:54:16 -05:00
parent 7f950d5dc3
commit 3ded897b77
4 changed files with 47 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ export function setWatchStatus(
watchStatus: (typeof WatchStatusValues)[number] | null,
) {
let dbAction;
const isSavingTitle = watchStatus === "CURRENT";
const isSavingTitle = watchStatus === "CURRENT" || watchStatus === "PLANNING";
if (isSavingTitle) {
dbAction = saveTitle(env, deviceId, titleId);
} else {