From f6a9af8ff102da4fa93de755150be2ae18e60bda Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 31 Aug 2018 20:26:24 +0000 Subject: [PATCH] --- server/AyaNova/biz/LocaleBiz.cs | 4 ++-- server/AyaNova/biz/TagBiz.cs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/server/AyaNova/biz/LocaleBiz.cs b/server/AyaNova/biz/LocaleBiz.cs index 6c0b14f7..4b9f18b0 100644 --- a/server/AyaNova/biz/LocaleBiz.cs +++ b/server/AyaNova/biz/LocaleBiz.cs @@ -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(); } diff --git a/server/AyaNova/biz/TagBiz.cs b/server/AyaNova/biz/TagBiz.cs index ae724917..19d54a8b 100644 --- a/server/AyaNova/biz/TagBiz.cs +++ b/server/AyaNova/biz/TagBiz.cs @@ -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); } }