From 72f1c8b9a8016ecbe068e1643525fed5bd90cca9 Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 30 Aug 2020 21:20:35 +0100 Subject: [PATCH] Fix modules derived from BookModuleWithSignalR --- src/Readarr.Api.V1/Books/BookModuleWithSignalR.cs | 12 +++++++----- src/Readarr.Api.V1/Calendar/CalendarModule.cs | 3 ++- src/Readarr.Api.V1/Wanted/CutoffModule.cs | 3 ++- src/Readarr.Api.V1/Wanted/MissingModule.cs | 3 ++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Readarr.Api.V1/Books/BookModuleWithSignalR.cs b/src/Readarr.Api.V1/Books/BookModuleWithSignalR.cs index bbca83628..2528fce8b 100644 --- a/src/Readarr.Api.V1/Books/BookModuleWithSignalR.cs +++ b/src/Readarr.Api.V1/Books/BookModuleWithSignalR.cs @@ -37,14 +37,16 @@ namespace Readarr.Api.V1.Books } protected BookModuleWithSignalR(IBookService bookService, - IAuthorStatisticsService authorStatisticsService, - IMapCoversToLocal coverMapper, - IUpgradableSpecification qualityUpgradableSpecification, - IBroadcastSignalRMessage signalRBroadcaster, - string resource) + ISeriesBookLinkService seriesBookLinkService, + IAuthorStatisticsService authorStatisticsService, + IMapCoversToLocal coverMapper, + IUpgradableSpecification qualityUpgradableSpecification, + IBroadcastSignalRMessage signalRBroadcaster, + string resource) : base(signalRBroadcaster, resource) { _bookService = bookService; + _seriesBookLinkService = seriesBookLinkService; _authorStatisticsService = authorStatisticsService; _coverMapper = coverMapper; _qualityUpgradableSpecification = qualityUpgradableSpecification; diff --git a/src/Readarr.Api.V1/Calendar/CalendarModule.cs b/src/Readarr.Api.V1/Calendar/CalendarModule.cs index 444ddbadc..7017299b7 100644 --- a/src/Readarr.Api.V1/Calendar/CalendarModule.cs +++ b/src/Readarr.Api.V1/Calendar/CalendarModule.cs @@ -14,11 +14,12 @@ namespace Readarr.Api.V1.Calendar public class CalendarModule : BookModuleWithSignalR { public CalendarModule(IBookService bookService, + ISeriesBookLinkService seriesBookLinkService, IAuthorStatisticsService authorStatisticsService, IMapCoversToLocal coverMapper, IUpgradableSpecification upgradableSpecification, IBroadcastSignalRMessage signalRBroadcaster) - : base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "calendar") + : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "calendar") { GetResourceAll = GetCalendar; } diff --git a/src/Readarr.Api.V1/Wanted/CutoffModule.cs b/src/Readarr.Api.V1/Wanted/CutoffModule.cs index e4f6437fc..30fa7b59e 100644 --- a/src/Readarr.Api.V1/Wanted/CutoffModule.cs +++ b/src/Readarr.Api.V1/Wanted/CutoffModule.cs @@ -17,11 +17,12 @@ namespace Readarr.Api.V1.Wanted public CutoffModule(IBookCutoffService bookCutoffService, IBookService bookService, + ISeriesBookLinkService seriesBookLinkService, IAuthorStatisticsService authorStatisticsService, IMapCoversToLocal coverMapper, IUpgradableSpecification upgradableSpecification, IBroadcastSignalRMessage signalRBroadcaster) - : base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff") + : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff") { _bookCutoffService = bookCutoffService; GetResourcePaged = GetCutoffUnmetBooks; diff --git a/src/Readarr.Api.V1/Wanted/MissingModule.cs b/src/Readarr.Api.V1/Wanted/MissingModule.cs index a1e46457a..788a32a78 100644 --- a/src/Readarr.Api.V1/Wanted/MissingModule.cs +++ b/src/Readarr.Api.V1/Wanted/MissingModule.cs @@ -14,11 +14,12 @@ namespace Readarr.Api.V1.Wanted public class MissingModule : BookModuleWithSignalR { public MissingModule(IBookService bookService, + ISeriesBookLinkService seriesBookLinkService, IAuthorStatisticsService authorStatisticsService, IMapCoversToLocal coverMapper, IUpgradableSpecification upgradableSpecification, IBroadcastSignalRMessage signalRBroadcaster) - : base(bookService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/missing") + : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/missing") { GetResourcePaged = GetMissingBooks; }