mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Fixed dynamic jobs with single property
This commit is contained in:
parent
f9370a8aec
commit
887456b337
5 changed files with 9 additions and 9 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue