Skip to content

Commit

Permalink
Skip deleted studios when searching by name (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flashy78 authored Sep 22, 2023
1 parent 7b37287 commit 4367766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sqlx/querybuilder_studio.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (qb *studioQueryBuilder) FindByNames(names []string) (models.Studios, error
}

func (qb *studioQueryBuilder) FindByName(name string) (*models.Studio, error) {
query := "SELECT * FROM studios WHERE upper(name) = upper(?)"
query := "SELECT * FROM studios WHERE upper(name) = upper(?) AND deleted = FALSE"
var args []interface{}
args = append(args, name)
results, err := qb.queryStudios(query, args)
Expand Down

0 comments on commit 4367766

Please sign in to comment.