Converted jobs to dynamic

This commit is contained in:
Mark McDowall 2012-09-10 12:04:17 -07:00
parent 93402f4932
commit a4dde81ceb
42 changed files with 166 additions and 170 deletions

View file

@ -41,8 +41,7 @@ namespace NzbDrone.Web.Controllers
var queue = _jobProvider.Queue.Select(c => new JobQueueItemModel
{
Name = c.JobType.Name,
TargetId = c.TargetId,
SecondaryTargetId = c.SecondaryTargetId
Options = c.Options
});
var serializedQueue = new JavaScriptSerializer().Serialize(queue);