From c022c725a2f7fb171089aa860cd600944e321679 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Sat, 11 Oct 2025 14:03:20 +0700 Subject: [PATCH] Remove cache and force fetch balance when no balance returned --- src/Managing.Application/Agents/AgentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Managing.Application/Agents/AgentService.cs b/src/Managing.Application/Agents/AgentService.cs index e2b65c12..b3b1355a 100644 --- a/src/Managing.Application/Agents/AgentService.cs +++ b/src/Managing.Application/Agents/AgentService.cs @@ -75,7 +75,7 @@ public class AgentService : IAgentService // Check if the balances are already cached var cachedBalances = _cacheService.GetValue(cacheKey); - if (cachedBalances != null) + if (cachedBalances != null && cachedBalances.AgentBalances.Any()) { return cachedBalances; }