mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 06:15:39 -04:00
Fix watchlisted shows not appearing in Continue Watching after logging episodes
When a show had status "watchlist", logging episode watches did not transition it to "in_progress", so it never appeared in the Continue Watching feed which filters for in_progress titles only. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -100,7 +100,7 @@ export function logEpisodeWatch(
|
||||
)
|
||||
.get();
|
||||
|
||||
if (!existing) {
|
||||
if (!existing || existing.status === "watchlist") {
|
||||
setTitleStatus(userId, titleId, "in_progress", source);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ export function logEpisodeWatchBatch(
|
||||
)
|
||||
.get();
|
||||
|
||||
if (!existing) {
|
||||
if (!existing || existing.status === "watchlist") {
|
||||
const statusNow = new Date();
|
||||
tx.insert(userTitleStatus)
|
||||
.values({
|
||||
|
||||
Reference in New Issue
Block a user