This commit is contained in:
2018-08-31 20:26:24 +00:00
parent 57f5d38a28
commit f6a9af8ff1
2 changed files with 3 additions and 6 deletions

View File

@@ -465,8 +465,8 @@ namespace AyaNova.Biz
ct.Locale.Add(l);
ct.SaveChanges();
//Log now that we have the Id
EventLogProcessor.AddEntry(new Event(1, l.Id, AyaType.Locale, AyaEvent.Created), ct);
//Log now that we have the Id, note that there is no source created / modified for this so just attributing to current userId
EventLogProcessor.AddEntry(new Event(userId, l.Id, AyaType.Locale, AyaEvent.Created), ct);
ct.SaveChanges();
}

View File

@@ -327,10 +327,7 @@ namespace AyaNova.Biz
await ct.SaveChangesAsync();
var mapItem = new ImportAyaNova7MapItem(OldV7Id, AyaType.Tag, o.Id);
importMap.Add(mapItem);
await ImportAyaNova7Biz.LogEventCreatedModifiedEvents(j, importMap, AyaType.Tag, ct);
//Log
// EventLogProcessor.AddEntry(new Event(userId, o.Id, AyaType.Tag, AyaEvent.Created), ct);
// await ct.SaveChangesAsync();
await ImportAyaNova7Biz.LogEventCreatedModifiedEvents(j, importMap, AyaType.Tag, ct);
}
}