This commit is contained in:
Jamie 2018-10-20 15:49:01 +01:00
commit 720adca896
4 changed files with 8 additions and 8 deletions

View file

@ -11,12 +11,12 @@ namespace Ombi.Core.Rule.Rules.Search
{
public class CouchPotatoCacheRule : BaseSearchRule, IRules<SearchViewModel>
{
public CouchPotatoCacheRule(IRepository<CouchPotatoCache> ctx)
public CouchPotatoCacheRule(IExternalRepository<CouchPotatoCache> ctx)
{
_ctx = ctx;
}
private readonly IRepository<CouchPotatoCache> _ctx;
private readonly IExternalRepository<CouchPotatoCache> _ctx;
public async Task<RuleResult> Execute(SearchViewModel obj)
{

View file

@ -10,12 +10,12 @@ namespace Ombi.Core.Rule.Rules.Search
{
public class LidarrAlbumCacheRule : SpecificRule, ISpecificRule<object>
{
public LidarrAlbumCacheRule(IRepository<LidarrAlbumCache> db)
public LidarrAlbumCacheRule(IExternalRepository<LidarrAlbumCache> db)
{
_db = db;
}
private readonly IRepository<LidarrAlbumCache> _db;
private readonly IExternalRepository<LidarrAlbumCache> _db;
public Task<RuleResult> Execute(object objec)
{

View file

@ -10,12 +10,12 @@ namespace Ombi.Core.Rule.Rules.Search
{
public class LidarrArtistCacheRule : SpecificRule, ISpecificRule<object>
{
public LidarrArtistCacheRule(IRepository<LidarrArtistCache> db)
public LidarrArtistCacheRule(IExternalRepository<LidarrArtistCache> db)
{
_db = db;
}
private readonly IRepository<LidarrArtistCache> _db;
private readonly IExternalRepository<LidarrArtistCache> _db;
public Task<RuleResult> Execute(object objec)
{

View file

@ -9,12 +9,12 @@ namespace Ombi.Core.Rule.Rules.Search
{
public class RadarrCacheRule : BaseSearchRule, IRules<SearchViewModel>
{
public RadarrCacheRule(IRepository<RadarrCache> db)
public RadarrCacheRule(IExternalRepository<RadarrCache> db)
{
_db = db;
}
private readonly IRepository<RadarrCache> _db;
private readonly IExternalRepository<RadarrCache> _db;
public Task<RuleResult> Execute(SearchViewModel obj)
{