Remove Indexers from App when Removed in Prowlarr

This commit is contained in:
Qstick
2021-02-17 21:51:28 -05:00
parent 546bec3717
commit 79c96b86a4
9 changed files with 50 additions and 8 deletions
@@ -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);