From 489fb7aaf49d963eaefc17332d600d8e7679a133 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 25 Nov 2020 19:52:12 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 68f36dd..2fea761 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -942,7 +942,7 @@ namespace AyaNova.PlugIn.V8 if (ShouldExportCustom) d.customFields = CustomFieldData(c, DateCustomFields); - var rMainObject = await util.PostAsync(RavenObjectName, d.ToString()); + var rMainObject = await util.PostAsync("loan-unit", d.ToString()); long RavenId = util.IdFromResponse(rMainObject); AddMap(c.ID, RavenId); @@ -972,7 +972,7 @@ namespace AyaNova.PlugIn.V8 repost = true; } if (repost) - await util.PutAsync(RavenObjectName, d.ToString()); + await util.PutAsync("loan-unit", d.ToString()); //----- //Event log fixup @@ -1024,7 +1024,7 @@ namespace AyaNova.PlugIn.V8 if (ShouldExportCustom) d.customFields = CustomFieldData(c, DateCustomFields); - var rMainObject = await util.PostAsync(RavenObjectName, d.ToString()); + var rMainObject = await util.PostAsync("part", d.ToString()); long RavenId = util.IdFromResponse(rMainObject); AddMap(c.ID, RavenId); @@ -1595,7 +1595,7 @@ namespace AyaNova.PlugIn.V8 if (IsDuplicateMapItem(c.ID, c.WorkorderQuote.QuoteNumber.ToString(), progress)) continue; var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderQuote, c.ID); //make one on the server to update - var rMainObject = await util.PostAsync(RavenObjectName + "/Create?serial=" + c.WorkorderQuote.QuoteNumber); + var rMainObject = await util.PostAsync("quote" + "/Create?serial=" + c.WorkorderQuote.QuoteNumber); long RavenId = util.IdFromResponse(rMainObject); AddMap(c.ID, RavenId); @@ -1640,7 +1640,7 @@ namespace AyaNova.PlugIn.V8 repost = true; } if (repost) - await util.PutAsync(RavenObjectName, d.ToString()); + await util.PutAsync("quote", d.ToString()); //----- //Event log fixup @@ -1679,7 +1679,7 @@ namespace AyaNova.PlugIn.V8 if (IsDuplicateMapItem(c.ID, c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber.ToString(), progress)) continue; var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderPreventiveMaintenance, c.ID); //make one on the server to update - var rMainObject = await util.PostAsync(RavenObjectName + "/Create?serial=" + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber); + var rMainObject = await util.PostAsync("pm" + "/Create?serial=" + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber); long RavenId = util.IdFromResponse(rMainObject); AddMap(c.ID, RavenId); @@ -1724,7 +1724,7 @@ namespace AyaNova.PlugIn.V8 repost = true; } if (repost) - await util.PutAsync(RavenObjectName, d.ToString()); + await util.PutAsync("pm", d.ToString()); //----- //Event log fixup