This commit is contained in:
2018-08-24 17:15:15 +00:00
parent 33626df512
commit c51fc3a6e7
4 changed files with 25 additions and 18 deletions

View File

@@ -86,23 +86,7 @@ namespace AyaNova.Api.Controllers
JObject o = JObject.FromObject(new
{
seedLevel = seedLevel
// channel = new
// {
// title = "Star Wars",
// link = "http://www.starwars.com",
// description = "Star Wars blog.",
// item =
// from p in posts
// orderby p.Title
// select new
// {
// title = p.Title,
// description = p.Description,
// link = p.Link,
// category = p.Categories
// }
// }
seedLevel = seedLevel
});
OpsJob j = new OpsJob();
@@ -111,6 +95,10 @@ namespace AyaNova.Api.Controllers
j.Exclusive=true;//don't run other jobs, this will erase the db
j.JobInfo = o.ToString();
JobsBiz.AddJob(j, ct);
//Log
EventLogProcessor.AddEntry(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.TrialSeeder, AyaEvent.Created,size), ct);
return Accepted(new { JobId = j.GId });//202 accepted
}