diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index d2c1421..5a50be5 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -390,15 +390,12 @@ namespace AyaNova.PlugIn.V8 } + //EVENT LOG - //JObject xtra = new JObject(); - //xtra.Add("hexaScheduleBackColor", ); - - //DumpObjectToFolder(tempArchiveFolder, c, "user." + c.ID.ToString(), objectExcludeProperties, new TypeAndID(RootObjectTypes.User, c.ID), null, xtra); } //todo fixup post import - progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid"); + progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext"); } #endregion clients diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index 6305e3a..e220d31 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -193,6 +193,21 @@ namespace AyaNova.PlugIn.V8 } } } + + + //make an event log entry to preserve the original v7 history such as it is + public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, DateTime Created, DateTime Modified) + { + dynamic d = new JObject(); + d.ayType = RavenType; + d.ayId = RavenId; + d.creator = RavenCreatorId; + d.modifier = RavenModifierId; + d.created = Created.ToUniversalTime(); + d.modified = Modified.ToUniversalTime(); + } + + /// /// ///