mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Use Series.OID (Tests still need to be updated)
CalendarModule working
This commit is contained in:
parent
f4170e90ad
commit
7d0d5ab943
24 changed files with 94 additions and 1035 deletions
|
@ -88,7 +88,7 @@ namespace NzbDrone.Api.Series
|
|||
_seriesRepository.Update(series);
|
||||
|
||||
if (oldPath != series.Path)
|
||||
_jobProvider.QueueJob(typeof(DiskScanJob), new { SeriesId = series.SeriesId });
|
||||
_jobProvider.QueueJob(typeof(DiskScanJob), new { SeriesId = series.OID });
|
||||
|
||||
_seriesRepository.Update(series);
|
||||
|
||||
|
@ -116,7 +116,7 @@ namespace NzbDrone.Api.Series
|
|||
{
|
||||
RuleSet("POST", () =>
|
||||
{
|
||||
RuleFor(s => s.SeriesId).GreaterThan(0);
|
||||
RuleFor(s => s.OID).GreaterThan(0);
|
||||
RuleFor(s => s.Path).NotEmpty().Must(_diskProvider.FolderExists);
|
||||
RuleFor(s => s.QualityProfileId).GreaterThan(0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue