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

(cherry picked from commit a28af5a)
  • Loading branch information
ericholguin authored and rimashah25 committed Jan 9, 2024
1 parent 999bfd7 commit e1a551e
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 e1a551e

Please sign in to comment.