fix: prevent updated_at bump for completed anime

This commit is contained in:
2026-05-06 23:40:57 +02:00
parent 69f0f1c7ef
commit f26088ad47

View File

@@ -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