Skip to content

Commit d976801

Browse files
committed
Minor tweak for api_gateway
1 parent a1a8ca9 commit d976801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth-api/src/auth_api/services/api_gateway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ def _get_email_id(cls, org_id, env) -> str:
202202
return current_app.config.get("API_GW_CONSUMER_EMAIL")
203203

204204
api_gw_email_suffix: str = current_app.config.get("API_GW_EMAIL_SUFFIX")
205-
id_suffix = "" if env == "prod" else "-sandbox"
205+
id_suffix = "" if env == "production" else "-sandbox"
206206
email_id = f"{org_id}{id_suffix}@{api_gw_email_suffix}"
207207
return email_id
208208

209209
@classmethod
210-
def _consumer_exists(cls, email, env):
210+
def _consumer_exists(cls, email):
211211
"""Return if customer exists with this email."""
212212
consumer_endpoint: str = current_app.config.get("API_GW_CONSUMERS_API_URL")
213213
gw_api_key: str = current_app.config.get("API_GW_KEY")

0 commit comments

Comments
 (0)