Skip to content

Commit

Permalink
Fix Movie.FindBySceneId
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinite committed May 4, 2020
1 parent ede8c87 commit 4508340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/querybuilder_movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (qb *MovieQueryBuilder) FindBySceneID(sceneID int, tx *sqlx.Tx) ([]*Movie,
query := `
SELECT movies.* FROM movies
LEFT JOIN movies_scenes as scenes_join on scenes_join.movie_id = movies.id
WHERE scenes_join.scenes.id = ?
WHERE scenes_join.scene_id = ?
GROUP BY movies.id
`
args := []interface{}{sceneID}
Expand Down

0 comments on commit 4508340

Please sign in to comment.