mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
moved cleanup of deleted files to their own service.
detaching of episodes when files are deleted is done through events now.
This commit is contained in:
@@ -14,6 +14,7 @@ namespace NzbDrone.Core.Datastore
|
||||
TModel Update(TModel model);
|
||||
TModel UpSert(TModel model);
|
||||
void Delete(int id);
|
||||
void Delete(TModel model);
|
||||
IList<TModel> InsertMany(IList<TModel> model);
|
||||
IList<TModel> UpdateMany(IList<TModel> model);
|
||||
void DeleteMany(List<TModel> model);
|
||||
@@ -67,6 +68,11 @@ namespace NzbDrone.Core.Datastore
|
||||
return ObjectDatabase.Update(model);
|
||||
}
|
||||
|
||||
public void Delete(TModel model)
|
||||
{
|
||||
ObjectDatabase.Delete(model);
|
||||
}
|
||||
|
||||
public IList<TModel> InsertMany(IList<TModel> model)
|
||||
{
|
||||
return ObjectDatabase.InsertMany(model);
|
||||
|
Reference in New Issue
Block a user