feat: support removing watch status when null

A user can choose to remove a show from being in their media list completely, by setting the watch status to null
This commit is contained in:
2024-07-04 18:18:57 -04:00
parent ad84175d6b
commit 2becf1aa3b
8 changed files with 222 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ export function setWatchStatus(
env: Env,
deviceId: string,
titleId: number,
watchStatus: (typeof WatchStatusValues)[number],
watchStatus: (typeof WatchStatusValues)[number] | null,
) {
let dbAction;
const isSavingTitle = watchStatus === "CURRENT";