Skip to content

Commit

Permalink
fix where query statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholguin committed Jan 3, 2024
1 parent b7d0ee4 commit 8d81b3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func Get(w http.ResponseWriter, r *http.Request) {

// TODO: add this functionality to the query builder in dbhelpers
if xmlID, ok := inf.Params["xmlId"]; ok {
where = dbhelpers.AppendWhere(where, "(r.deliveryservice->>'xmlId' = :xmlId) OR (r.original->>'xmlId' = :xmlId)")
where = dbhelpers.AppendWhere(where, "((r.deliveryservice->>'xmlId' = :xmlId) OR (r.original->>'xmlId' = :xmlId))")
queryValues["xmlId"] = xmlID
}

Expand Down

0 comments on commit 8d81b3b

Please sign in to comment.