Fixed dynamic jobs with single property

This commit is contained in:
Mark McDowall 2012-10-19 21:36:47 -07:00
parent f9370a8aec
commit 887456b337
5 changed files with 9 additions and 9 deletions

View file

@ -20,7 +20,7 @@ namespace NzbDrone.Web.Controllers
public JsonResult Search(int episodeId)
{
_jobProvider.QueueJob(typeof(EpisodeSearchJob), episodeId);
_jobProvider.QueueJob(typeof(EpisodeSearchJob), new { EpisodeId = episodeId });
return JsonNotificationResult.Queued("Episode search");
}
@ -33,7 +33,7 @@ namespace NzbDrone.Web.Controllers
public JsonResult BacklogSeries(int seriesId)
{
_jobProvider.QueueJob(typeof(SeriesSearchJob), seriesId);
_jobProvider.QueueJob(typeof(SeriesSearchJob), new { SeriesId = seriesId });
return JsonNotificationResult.Queued("Series Backlog");
}
@ -47,7 +47,7 @@ namespace NzbDrone.Web.Controllers
public JsonResult RenameSeries(int seriesId)
{
_jobProvider.QueueJob(typeof(RenameSeriesJob), seriesId);
_jobProvider.QueueJob(typeof(RenameSeriesJob), new { SeriesId = seriesId });
return JsonNotificationResult.Queued("Series rename");
}