From 957bc1746f48851ca39679d34fdc2ced082e9f5c Mon Sep 17 00:00:00 2001 From: Fayupable <90789180+Fayupable@users.noreply.github.com> Date: Mon, 13 Jul 2026 11:17:31 +0300 Subject: [PATCH] feat: update effective FIDE rating and source in refresh stale cards service --- chessfut-be/application/service/refresh_stale_cards_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chessfut-be/application/service/refresh_stale_cards_service.go b/chessfut-be/application/service/refresh_stale_cards_service.go index 36c96b9..f757238 100644 --- a/chessfut-be/application/service/refresh_stale_cards_service.go +++ b/chessfut-be/application/service/refresh_stale_cards_service.go @@ -39,6 +39,7 @@ func (s *RefreshStaleCardsService) Execute(ctx context.Context, batchSize int) ( if delta < minGamesDeltaForRebuild { existing.Stats = freshStats existing.ExpiresAt = time.Now().Add(cardTTL) + existing.EffectiveFideRating, existing.FideSource = FideRatingInfo(existing.Player.Title, freshStats.FideRating) _ = s.cardRepository.Save(ctx, existing) s.refreshCacheIfPresent(ctx, existing) refreshed++