This commit is contained in:
2020-05-18 16:38:28 +00:00
parent 07390b6a31
commit a5832cefba
4 changed files with 12 additions and 10 deletions

View File

@@ -230,6 +230,9 @@ namespace AyaNova.Api.Controllers
j.Name = "TestWidgetJob";
j.JobType = JobType.TestWidgetJob;
await JobsBiz.AddJobAsync(j, ct);
//Log
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.ServerJob, AyaEvent.Created, $"{j.JobType} {j.Name}"), ct);
return Accepted(new { JobId = j.GId });//202 accepted
}