This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user