mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(filters): duplicate missing actions (#943)
This commit is contained in:
parent
e40d11aaa9
commit
43ccf404da
1 changed files with 6 additions and 0 deletions
|
@ -256,6 +256,12 @@ func (s *service) Duplicate(ctx context.Context, filterID int) (*domain.Filter,
|
|||
}
|
||||
filter.Indexers = filterIndexers
|
||||
|
||||
// reset action id to 0
|
||||
for i, a := range filterActions {
|
||||
a.ID = 0
|
||||
filterActions[i] = a
|
||||
}
|
||||
|
||||
// take care of filter actions
|
||||
actions, err := s.actionRepo.StoreFilterActions(ctx, filterActions, int64(filter.ID))
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue