Skip to content

Commit

Permalink
Fix bulk movie update (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
DingDongSoLong4 authored Sep 20, 2023
1 parent 3aa3515 commit 7ba7df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/api/changeset_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7ba7df0

Please sign in to comment.