From f26088ad474ce52715c5729e4cdc1dc8f6d91cec Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 6 May 2026 23:40:57 +0200 Subject: [PATCH] fix: prevent updated_at bump for completed anime --- api/playback/progress.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/playback/progress.go b/api/playback/progress.go index c127632..73f6e6a 100644 --- a/api/playback/progress.go +++ b/api/playback/progress.go @@ -50,6 +50,10 @@ func (s *Service) SaveProgress(ctx context.Context, userID string, animeID int64 } } + if isCompleted { + return tx.Commit() + } + var durationSeconds sql.NullFloat64 if animeSeed != nil { durationSeconds = animeSeed.DurationSeconds