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