This commit is contained in:
@@ -464,8 +464,8 @@ namespace AyaNova
|
||||
context.Request.HttpContext.Items["AY_TRANSLATION_ID"] = u.translationId;
|
||||
|
||||
//Is import mode header set?
|
||||
|
||||
context.Request.HttpContext.Items["AY_IMPORT_MODE"]= context.Request.Headers.ContainsKey("X-AY-Import-Mode");
|
||||
if (context.Request.Headers.ContainsKey("X-AY-Import-Mode"))
|
||||
context.Request.HttpContext.Items["AY_IMPORT_MODE"] = true;
|
||||
|
||||
|
||||
//CHECK JWT
|
||||
|
||||
@@ -55,7 +55,10 @@ namespace AyaNova.Biz
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, newObject.Id, BizType, AyaEvent.Created), ct);
|
||||
await SearchIndexAsync(newObject, true);
|
||||
await TagBiz.ProcessUpdateTagsInRepositoryAsync(ct, newObject.Tags, null);
|
||||
if (!ImportMode)
|
||||
await NotifyEventProcessor.HandlePotentialNotificationEvent(AyaEvent.Created, newObject);
|
||||
else
|
||||
newObject.TechNotes+="*";
|
||||
return newObject;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user