mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +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
|
filter.Indexers = filterIndexers
|
||||||
|
|
||||||
|
// reset action id to 0
|
||||||
|
for i, a := range filterActions {
|
||||||
|
a.ID = 0
|
||||||
|
filterActions[i] = a
|
||||||
|
}
|
||||||
|
|
||||||
// take care of filter actions
|
// take care of filter actions
|
||||||
actions, err := s.actionRepo.StoreFilterActions(ctx, filterActions, int64(filter.ID))
|
actions, err := s.actionRepo.StoreFilterActions(ctx, filterActions, int64(filter.ID))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue