This commit is contained in:
2020-11-27 19:32:32 +00:00
parent 945de40c16
commit 54b9455e74
2 changed files with 12 additions and 9 deletions

View File

@@ -119,7 +119,7 @@ namespace AyaNova
_newLog.LogDebug("Ensuring user and backup folders exist and are separate locations..."); _newLog.LogDebug("Ensuring user and backup folders exist and are separate locations...");
FileUtil.EnsureUserAndUtilityFoldersExistAndAreNotIdentical(_hostingEnvironment.ContentRootPath); FileUtil.EnsureUserAndUtilityFoldersExistAndAreNotIdentical(_hostingEnvironment.ContentRootPath);
//TODO: ENsure report files here //TODO: ENsure report files here
#region DATABASE #region DATABASE
@@ -464,8 +464,8 @@ namespace AyaNova
context.Request.HttpContext.Items["AY_TRANSLATION_ID"] = u.translationId; context.Request.HttpContext.Items["AY_TRANSLATION_ID"] = u.translationId;
//Is import mode header set? //Is import mode header set?
if (context.Request.Headers.ContainsKey("X-AY-Import-Mode"))
context.Request.HttpContext.Items["AY_IMPORT_MODE"]= context.Request.Headers.ContainsKey("X-AY-Import-Mode"); context.Request.HttpContext.Items["AY_IMPORT_MODE"] = true;
//CHECK JWT //CHECK JWT

View File

@@ -55,7 +55,10 @@ namespace AyaNova.Biz
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, newObject.Id, BizType, AyaEvent.Created), ct); await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, newObject.Id, BizType, AyaEvent.Created), ct);
await SearchIndexAsync(newObject, true); await SearchIndexAsync(newObject, true);
await TagBiz.ProcessUpdateTagsInRepositoryAsync(ct, newObject.Tags, null); await TagBiz.ProcessUpdateTagsInRepositoryAsync(ct, newObject.Tags, null);
await NotifyEventProcessor.HandlePotentialNotificationEvent(AyaEvent.Created, newObject); if (!ImportMode)
await NotifyEventProcessor.HandlePotentialNotificationEvent(AyaEvent.Created, newObject);
else
newObject.TechNotes+="*";
return newObject; return newObject;
} }
} }