This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user