From 7ba7df052da663ce7acfc796bb9e22c62fb20d2d Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Wed, 20 Sep 2023 03:11:27 +0200 Subject: [PATCH] Fix bulk movie update (#4130) --- internal/api/changeset_translator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{