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
|
@ -118,7 +118,7 @@ func (s *service) FindByID(ctx context.Context, filterID int) (*domain.Filter, e
|
|||
return nil, err
|
||||
}
|
||||
|
||||
actions, err := s.actionRepo.FindByFilterID(ctx, filter.ID)
|
||||
actions, err := s.actionRepo.FindByFilterID(ctx, filter.ID, nil)
|
||||
if err != nil {
|
||||
s.log.Error().Err(err).Msgf("could not find filter actions for filter id: %v", filter.ID)
|
||||
}
|
||||
|
@ -691,7 +691,7 @@ func (s *service) webhook(ctx context.Context, external domain.FilterExternal, r
|
|||
}
|
||||
|
||||
// add header to req
|
||||
req.Header.Add(http.CanonicalHeaderKey(h[0]), h[1])
|
||||
req.Header.Add(h[0], h[1]) // go already canonicalizes the provided header key.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue