diff --git a/internal/api/changeset_translator.go b/internal/api/changeset_translator.go index 0472edc4c..412f12db9 100644 --- a/internal/api/changeset_translator.go +++ b/internal/api/changeset_translator.go @@ -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{