mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Added commands to delete logs and log files (separately)
This commit is contained in:
parent
e152ecc55d
commit
1274c1c144
12 changed files with 191 additions and 28 deletions
|
@ -32,6 +32,7 @@ namespace NzbDrone.Core.Datastore
|
|||
void SetFields(TModel model, params Expression<Func<TModel, object>>[] properties);
|
||||
TModel Single();
|
||||
PagingSpec<TModel> GetPaged(PagingSpec<TModel> pagingSpec);
|
||||
void DeleteAll();
|
||||
}
|
||||
|
||||
|
||||
|
@ -217,6 +218,10 @@ namespace NzbDrone.Core.Datastore
|
|||
return pagingSpec;
|
||||
}
|
||||
|
||||
public void DeleteAll()
|
||||
{
|
||||
DataMapper.Delete<TModel>(c => c.Id > 0);
|
||||
}
|
||||
|
||||
private void PublishModelEvent(TModel model, RepositoryAction action)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue