mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): show enabled and disabled actions in list view (#1304)
* feat(filters): reflect enabled actions * dont store release unless enabled action found * store the release after the delay * add new parameter to FindByFilterID method
This commit is contained in:
parent
95cd053db5
commit
6e12654f6a
11 changed files with 59 additions and 45 deletions
|
@ -20,7 +20,7 @@ type Service interface {
|
|||
Store(ctx context.Context, action domain.Action) (*domain.Action, error)
|
||||
List(ctx context.Context) ([]domain.Action, error)
|
||||
Get(ctx context.Context, req *domain.GetActionRequest) (*domain.Action, error)
|
||||
FindByFilterID(ctx context.Context, filterID int) ([]*domain.Action, error)
|
||||
FindByFilterID(ctx context.Context, filterID int, active *bool) ([]*domain.Action, error)
|
||||
Delete(ctx context.Context, req *domain.DeleteActionRequest) error
|
||||
DeleteByFilterID(ctx context.Context, filterID int) error
|
||||
ToggleEnabled(actionID int) error
|
||||
|
@ -76,8 +76,8 @@ func (s *service) Get(ctx context.Context, req *domain.GetActionRequest) (*domai
|
|||
return a, nil
|
||||
}
|
||||
|
||||
func (s *service) FindByFilterID(ctx context.Context, filterID int) ([]*domain.Action, error) {
|
||||
return s.repo.FindByFilterID(ctx, filterID)
|
||||
func (s *service) FindByFilterID(ctx context.Context, filterID int, active *bool) ([]*domain.Action, error) {
|
||||
return s.repo.FindByFilterID(ctx, filterID, active)
|
||||
}
|
||||
|
||||
func (s *service) Delete(ctx context.Context, req *domain.DeleteActionRequest) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue