mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
Remove Indexers from App when Removed in Prowlarr
This commit is contained in:
@@ -8,6 +8,7 @@ namespace NzbDrone.Core.Applications
|
||||
{
|
||||
List<AppIndexerMap> GetMappingsForApp(int appId);
|
||||
AppIndexerMap Insert(AppIndexerMap appIndexerMap);
|
||||
void Delete(int mappingId);
|
||||
void DeleteAllForApp(int appId);
|
||||
}
|
||||
|
||||
@@ -25,6 +26,11 @@ namespace NzbDrone.Core.Applications
|
||||
_appIndexerMapRepository.DeleteAllForApp(appId);
|
||||
}
|
||||
|
||||
public void Delete(int mappingId)
|
||||
{
|
||||
_appIndexerMapRepository.Delete(mappingId);
|
||||
}
|
||||
|
||||
public List<AppIndexerMap> GetMappingsForApp(int appId)
|
||||
{
|
||||
return _appIndexerMapRepository.GetMappingsForApp(appId);
|
||||
|
||||
Reference in New Issue
Block a user