mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
CalendarModule uses injectTo instead of AutoMapper
This commit is contained in:
parent
b12b8724b9
commit
23e9c725f3
@ -4,6 +4,7 @@
|
||||
using Nancy;
|
||||
using NzbDrone.Api.Episodes;
|
||||
using NzbDrone.Api.Extensions;
|
||||
using NzbDrone.Api.Mapping;
|
||||
using NzbDrone.Core.Tv;
|
||||
|
||||
namespace NzbDrone.Api.Calendar
|
||||
@ -32,7 +33,7 @@ private Response GetEpisodesBetweenStartAndEndDate()
|
||||
if(queryEnd.HasValue) end = DateTime.Parse(queryEnd.Value);
|
||||
|
||||
var episodes = _episodeService.EpisodesBetweenDates(start, end);
|
||||
return Mapper.Map<List<Episode>, List<EpisodeResource>>(episodes).AsResponse();
|
||||
return episodes.InjectTo<List<EpisodeResource>>().AsResponse();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user