diff --git a/api/playback/progress.go b/api/playback/progress.go index 1c7c586..33b67ed 100644 --- a/api/playback/progress.go +++ b/api/playback/progress.go @@ -101,14 +101,15 @@ func (s *Service) CompleteAnime(ctx context.Context, userID string, animeID int6 UserID: userID, AnimeID: animeID, Status: "completed", - CurrentEpisode: sql.NullInt64{Int64: int64(episode), Valid: true}, + CurrentEpisode: sql.NullInt64{Int64: 0, Valid: false}, CurrentTimeSeconds: 0, + UpdatedAt: sql.NullTime{Valid: true}, }); err != nil { return fmt.Errorf("failed to mark watchlist as completed: %w", err) } if err := txQueries.SaveWatchProgress(ctx, database.SaveWatchProgressParams{ - CurrentEpisode: sql.NullInt64{Int64: int64(episode), Valid: true}, + CurrentEpisode: sql.NullInt64{Int64: 0, Valid: false}, CurrentTimeSeconds: 0, UserID: userID, AnimeID: animeID,