mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
Added commands to delete logs and log files (separately)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user