Remove cache and force fetch balance when no balance returned
This commit is contained in:
@@ -75,7 +75,7 @@ public class AgentService : IAgentService
|
||||
// Check if the balances are already cached
|
||||
var cachedBalances = _cacheService.GetValue<AgentBalanceHistory>(cacheKey);
|
||||
|
||||
if (cachedBalances != null)
|
||||
if (cachedBalances != null && cachedBalances.AgentBalances.Any())
|
||||
{
|
||||
return cachedBalances;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user