mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07: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:
parent
40a959a309
commit
9a8414edde
19 changed files with 195 additions and 193 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue