mirror of https://github.com/stashapp/stash.git
Fix bulk movie update (#4130)
This commit is contained in:
parent
3aa3515b9c
commit
7ba7df052d
|
@ -415,9 +415,9 @@ func (t changesetTranslator) updateMovieIDsBulk(value *BulkUpdateIds, field stri
|
|||
return nil, fmt.Errorf("converting ids [%v]: %w", value.Ids, err)
|
||||
}
|
||||
|
||||
movies := make([]models.MoviesScenes, len(value.Ids))
|
||||
for _, id := range ids {
|
||||
movies = append(movies, models.MoviesScenes{MovieID: id})
|
||||
movies := make([]models.MoviesScenes, len(ids))
|
||||
for i, id := range ids {
|
||||
movies[i] = models.MoviesScenes{MovieID: id}
|
||||
}
|
||||
|
||||
return &models.UpdateMovieIDs{
|
||||
|
|
Loading…
Reference in New Issue