Skip to content

Commit

Permalink
Fix broken deliveryservice_requests query parameter (#7893)
Browse files Browse the repository at this point in the history
fix where query statement
  • Loading branch information
ericholguin committed Jan 6, 2024
1 parent b7d0ee4 commit a28af5a
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 a28af5a

Please sign in to comment.