feat: add watch-complete endpoint

Removes continue_watching_entry and clears progress when the last
episode finishes so it no longer shows in Continue Watching.
This commit is contained in:
2026-05-13 18:22:18 +02:00
parent 6c45a80623
commit 28e8b322d0
4 changed files with 46 additions and 0 deletions

View File

@@ -29,3 +29,7 @@ func (r *playbackRepository) SaveWatchProgress(ctx context.Context, params db.Sa
func (r *playbackRepository) UpsertContinueWatchingEntry(ctx context.Context, params db.UpsertContinueWatchingEntryParams) (db.ContinueWatchingEntry, error) {
return r.queries.UpsertContinueWatchingEntry(ctx, params)
}
func (r *playbackRepository) DeleteContinueWatchingEntry(ctx context.Context, params db.DeleteContinueWatchingEntryParams) error {
return r.queries.DeleteContinueWatchingEntry(ctx, params)
}