Fix modules derived from BookModuleWithSignalR

pull/422/head
ta264 4 years ago
parent 3a12ae6956
commit 72f1c8b9a8

@ -37,6 +37,7 @@ namespace Readarr.Api.V1.Books
} }
protected BookModuleWithSignalR(IBookService bookService, protected BookModuleWithSignalR(IBookService bookService,
ISeriesBookLinkService seriesBookLinkService,
IAuthorStatisticsService authorStatisticsService, IAuthorStatisticsService authorStatisticsService,
IMapCoversToLocal coverMapper, IMapCoversToLocal coverMapper,
IUpgradableSpecification qualityUpgradableSpecification, IUpgradableSpecification qualityUpgradableSpecification,
@ -45,6 +46,7 @@ namespace Readarr.Api.V1.Books
: base(signalRBroadcaster, resource) : base(signalRBroadcaster, resource)
{ {
_bookService = bookService; _bookService = bookService;
_seriesBookLinkService = seriesBookLinkService;
_authorStatisticsService = authorStatisticsService; _authorStatisticsService = authorStatisticsService;
_coverMapper = coverMapper; _coverMapper = coverMapper;
_qualityUpgradableSpecification = qualityUpgradableSpecification; _qualityUpgradableSpecification = qualityUpgradableSpecification;

@ -14,11 +14,12 @@ namespace Readarr.Api.V1.Calendar
public class CalendarModule : BookModuleWithSignalR public class CalendarModule : BookModuleWithSignalR
{ {
public CalendarModule(IBookService bookService, public CalendarModule(IBookService bookService,
ISeriesBookLinkService seriesBookLinkService,
IAuthorStatisticsService authorStatisticsService, IAuthorStatisticsService authorStatisticsService,
IMapCoversToLocal coverMapper, IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification, IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster) IBroadcastSignalRMessage signalRBroadcaster)
: base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "calendar") : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "calendar")
{ {
GetResourceAll = GetCalendar; GetResourceAll = GetCalendar;
} }

@ -17,11 +17,12 @@ namespace Readarr.Api.V1.Wanted
public CutoffModule(IBookCutoffService bookCutoffService, public CutoffModule(IBookCutoffService bookCutoffService,
IBookService bookService, IBookService bookService,
ISeriesBookLinkService seriesBookLinkService,
IAuthorStatisticsService authorStatisticsService, IAuthorStatisticsService authorStatisticsService,
IMapCoversToLocal coverMapper, IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification, IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster) IBroadcastSignalRMessage signalRBroadcaster)
: base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff") : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff")
{ {
_bookCutoffService = bookCutoffService; _bookCutoffService = bookCutoffService;
GetResourcePaged = GetCutoffUnmetBooks; GetResourcePaged = GetCutoffUnmetBooks;

@ -14,11 +14,12 @@ namespace Readarr.Api.V1.Wanted
public class MissingModule : BookModuleWithSignalR public class MissingModule : BookModuleWithSignalR
{ {
public MissingModule(IBookService bookService, public MissingModule(IBookService bookService,
ISeriesBookLinkService seriesBookLinkService,
IAuthorStatisticsService authorStatisticsService, IAuthorStatisticsService authorStatisticsService,
IMapCoversToLocal coverMapper, IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification, IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster) IBroadcastSignalRMessage signalRBroadcaster)
: base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/missing") : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/missing")
{ {
GetResourcePaged = GetMissingBooks; GetResourcePaged = GetMissingBooks;
} }

Loading…
Cancel
Save