This commit is contained in:
2020-09-09 22:33:24 +00:00
parent 1bc2c29619
commit 4007f2fe8a
3 changed files with 37 additions and 83 deletions

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Biz
await semaphoreSlim.WaitAsync();
try
{
if (!theCache.ContainsKey(1))
if (!theCache.ContainsKey(id))
theCache.Add(id, await GetTranslationSearchDataAsync(id));
return theCache.First(z=>z.Key==id).Value;
}