mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Genericise sliceutil functions (#4253)
* Genericise sliceutil.SliceSame * Genericise intslice functions * Genericise stringutil functions
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/stashapp/stash/pkg/models"
|
||||
"github.com/stashapp/stash/pkg/sliceutil/intslice"
|
||||
"github.com/stashapp/stash/pkg/sliceutil"
|
||||
)
|
||||
|
||||
type ContentsChangedError struct {
|
||||
@@ -42,7 +42,7 @@ func (s *Service) ValidateImageGalleryChange(ctx context.Context, i *models.Imag
|
||||
changedIDs = updateIDs.IDs
|
||||
case models.RelationshipUpdateModeSet:
|
||||
// get the difference between the two lists
|
||||
changedIDs = intslice.IntNotIntersect(i.GalleryIDs.List(), updateIDs.IDs)
|
||||
changedIDs = sliceutil.NotIntersect(i.GalleryIDs.List(), updateIDs.IDs)
|
||||
}
|
||||
|
||||
galleries, err := s.Repository.FindMany(ctx, changedIDs)
|
||||
|
||||
Reference in New Issue
Block a user