From 62072ef5f90b89525add1eb8f3984a6b331fef92 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 25 Nov 2020 18:48:08 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index c23f5a8..8756918 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -411,11 +411,11 @@ namespace AyaNova.PlugIn.V8 if (hasWiki || adminCustomFields != null) { //yes, so fetch it and modify it and put it back again - var a = await util.GetAsync("User/1"); + var a = await util.GetAsync("user/1"); dynamic d = a.ObjectResponse["data"]; d.wiki = AdminWikiContent; d.customFields = CustomFieldData(admin, DateCustomFields); - await util.PutAsync("User/1", d.ToString()); + await util.PutAsync("user/1", d.ToString()); } @@ -486,14 +486,14 @@ namespace AyaNova.PlugIn.V8 if (ShouldExportCustom) d.customFields = CustomFieldData(c, DateCustomFields); - var rMainObject = await util.PostAsync("User", d.ToString()); + var rMainObject = await util.PostAsync("user", d.ToString()); long RavenId = util.IdFromResponse(rMainObject); AddMap(c.ID, RavenId); //USER OPTIONS if (c.ScheduleBackColor != 0 || !string.IsNullOrWhiteSpace(c.EmailAddress)) { - var rOptions = await util.GetAsync("UserOptions/" + RavenId.ToString()); + var rOptions = await util.GetAsync("user-option/" + RavenId.ToString()); d = rOptions.ObjectResponse["data"]; d.uiColor = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(c.ScheduleBackColor)); d.emailAddress = string.IsNullOrWhiteSpace(c.EmailAddress) ? null : c.EmailAddress; @@ -502,7 +502,7 @@ namespace AyaNova.PlugIn.V8 else d.translationId = 1; - await util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString()); + await util.PutAsync("user-option/" + RavenId.ToString(), d.ToString()); } //Attachments / FILES @@ -1475,7 +1475,7 @@ namespace AyaNova.PlugIn.V8 dynamic d = new JObject(); - //d.concurrencyToken = util.CTokenFromResponse(rMainObject); + //d.concurrency = util.CTokenFromResponse(rMainObject); progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber); d.active = true;//probably can remove this at server, just stubbed in for now @@ -1529,7 +1529,7 @@ namespace AyaNova.PlugIn.V8 dynamic dwi = new JObject(); dwi.workOrderId = RavenId; - // d.concurrencyToken = util.CTokenFromResponse(rMainObject); + // d.concurrency = util.CTokenFromResponse(rMainObject); progress.Op("WorkorderItem " + wi.ID.ToString()); dwi.active = true;//probably can remove this at server, just stubbed in for now @@ -1586,7 +1586,7 @@ namespace AyaNova.PlugIn.V8 AddMap(c.ID, RavenId); dynamic d = new JObject(); - d.concurrencyToken = util.CTokenFromResponse(rMainObject); + d.concurrency = util.CTokenFromResponse(rMainObject); progress.Op(ObjectTypeName + " " + c.WorkorderQuote.QuoteNumber); d.active = true;//probably can remove this at server, just stubbed in for now @@ -1670,7 +1670,7 @@ namespace AyaNova.PlugIn.V8 AddMap(c.ID, RavenId); dynamic d = new JObject(); - d.concurrencyToken = util.CTokenFromResponse(rMainObject); + d.concurrency = util.CTokenFromResponse(rMainObject); progress.Op(ObjectTypeName + " " + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber); d.active = true;//probably can remove this at server, just stubbed in for now @@ -2327,7 +2327,7 @@ namespace AyaNova.PlugIn.V8 //ok, were here because there *are* custom fields available var a = await util.GetAsync("form-custom/" + RavenCustomTranslationKeyObjectName); var ctoken = util.CTokenFromResponse(a); - d.concurrencyToken = ctoken; + d.concurrency = ctoken; await util.PutAsync("form-custom/" + RavenCustomTranslationKeyObjectName, d.ToString()); return ret;