Remove cache and force fetch balance when no balance returned

This commit is contained in:
2025-10-11 14:03:20 +07:00
parent e3f2577db4
commit c022c725a2

View File

@@ -75,7 +75,7 @@ public class AgentService : IAgentService
// Check if the balances are already cached // Check if the balances are already cached
var cachedBalances = _cacheService.GetValue<AgentBalanceHistory>(cacheKey); var cachedBalances = _cacheService.GetValue<AgentBalanceHistory>(cacheKey);
if (cachedBalances != null) if (cachedBalances != null && cachedBalances.AgentBalances.Any())
{ {
return cachedBalances; return cachedBalances;
} }