This commit is contained in:
2020-04-28 22:23:55 +00:00
parent 76579ce810
commit 3238d36e10
2 changed files with 11 additions and 11 deletions

View File

@@ -392,7 +392,7 @@ namespace AyaNova.PlugIn.V8
d.uiColor = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(c.ScheduleBackColor));
d.emailAddress = c.EmailAddress;
util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString());
await util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString());
}
}

View File

@@ -134,8 +134,8 @@ namespace AyaNova.PlugIn.V8
{
throw new Exception("GET error, route: " + route + "\n" + responseAsString + "\n" + response.ReasonPhrase);
}
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
else
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
}
public async static Task<ApiResponse> PostAsync(string route, string postJson = null)
@@ -154,8 +154,8 @@ namespace AyaNova.PlugIn.V8
{
throw new Exception("POST error, route: " + route + "\n" + responseAsString + "\n" + response.ReasonPhrase);
}
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
else
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
}
public async static Task<ApiResponse> PutAsync(string route, string putJson = null)
@@ -175,8 +175,8 @@ namespace AyaNova.PlugIn.V8
{
throw new Exception("PUT error, route: " + route + "\n" + responseAsString + "\n" + response.ReasonPhrase);
}
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
else
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
}
@@ -199,12 +199,12 @@ namespace AyaNova.PlugIn.V8
public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, string sCreated, string sModified)
{
DateTime Created = DateTime.UtcNow;
if(!string.IsNullOrWhiteSpace(sCreated))
Created=DateTime.Parse(sCreated).ToUniversalTime();
if (!string.IsNullOrWhiteSpace(sCreated))
Created = DateTime.Parse(sCreated).ToUniversalTime();
DateTime Modified = DateTime.UtcNow;
if(!string.IsNullOrWhiteSpace(sCreated))
Modified = DateTime.Parse(sModified).ToUniversalTime();
if (!string.IsNullOrWhiteSpace(sCreated))
Modified = DateTime.Parse(sModified).ToUniversalTime();
dynamic d = new JObject();
d.ayType = RavenType;