This commit is contained in:
2020-07-22 23:43:42 +00:00
parent d09d694719
commit bea2293c51
3 changed files with 5 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -50,7 +50,7 @@
"AYANOVA_USE_URLS": "http://*:7575;", "AYANOVA_USE_URLS": "http://*:7575;",
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles", "AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles", "AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_SERVER_TEST_MODE":"true", "AYANOVA_SERVER_TEST_MODE":"false",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL":"small", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL":"small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7",
"AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\" "AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\"

View File

@@ -1,3 +1,4 @@
using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Threading; using System.Threading;
using System.Collections.Generic; using System.Collections.Generic;
@@ -17,8 +18,8 @@ namespace AyaNova.Biz
try try
{ {
if (!theCache.ContainsKey(1)) if (!theCache.ContainsKey(1))
theCache[id] = await GetTranslationSearchDataAsync(id); theCache.Add(id, await GetTranslationSearchDataAsync(id));
return theCache[id]; return theCache.First(z=>z.Key==id).Value;
} }
finally finally
{ {

View File

@@ -185,7 +185,7 @@ namespace AyaNova.Biz
//Used for subject of email and message deliveries //Used for subject of email and message deliveries
private static string GetTranslatedNotifyEventName(NotifyEventType net, long translationId) private static string GetTranslatedNotifyEventName(NotifyEventType net, long translationId)
{ {
return _transCache[translationId][(int)net].Name; return _transCache.First(z => z.Key == translationId).Value.First(z => z.Id == (int)net).Name;
} }
private static async Task DeliverInApp(NotifyEvent ne, AyContext ct) private static async Task DeliverInApp(NotifyEvent ne, AyContext ct)