Fix bulk add movie to scenes and autotag transaction error (#2928)

* Fix bulk add movie to scene
* Fix already in transaction error for autotag
This commit is contained in:
WithoutPants
2022-09-19 14:52:40 +10:00
committed by GitHub
parent 648247aa00
commit 0359ce2ed8
5 changed files with 37 additions and 5 deletions

View File

@@ -228,7 +228,7 @@ func (r *mutationResolver) BulkSceneUpdate(ctx context.Context, input BulkSceneU
}
// Save the movies
if translator.hasField("movies") {
if translator.hasField("movie_ids") {
updatedScene.MovieIDs, err = translateSceneMovieIDs(*input.MovieIds)
if err != nil {
return nil, fmt.Errorf("converting movie ids: %w", err)