Skip to content

Commit

Permalink
feat: Sales type api proxy (#1912)
Browse files Browse the repository at this point in the history
* feat: Sales type api proxy

* fixup! feat: Sales type api proxy
  • Loading branch information
aleixhub authored May 21, 2024
1 parent 38adcb3 commit ede6f51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions catalog/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,15 @@ async def salesforce_id_validation(request):
headers = {
"Authorization": f"Bearer {salesforce_authorization_token}"
}
queryString = f"salesforce_id={salesforce_id}"
salesType = request.query.get("sales_type")
if salesType:
queryString = f"{queryString}&sales_type={salesType}"
return await api_proxy(
data={},
headers=headers,
method="POST",
params=request.query,
url=f"{salesforce_api}/sales_validation?salesforce_id={salesforce_id}",
url=f"{salesforce_api}/sales_validation?{queryString}",
)

@routes.get("/api/workshop/{workshop_id}")
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ catalog:
image:
pullPolicy: IfNotPresent
repository: quay.io/redhat-gpte/babylon-catalog-api
tag: v1.0.1
tag: v1.0.2
loggingLevel: INFO
replicaCount: 1
resources:
Expand Down

0 comments on commit ede6f51

Please sign in to comment.