Skip to content

Commit

Permalink
Merge pull request #2 from OrenZhang/fix_run_mode
Browse files Browse the repository at this point in the history
fix: invalid staging of itsm api
  • Loading branch information
OrenZhang authored Oct 20, 2023
2 parents a5fe14c + bc7047e commit cb8b46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_endpoint(api_name, provider=APIProvider.APIGW, stage=None):
"""
# 默认环境
if not stage:
stage = "prod" if settings.RUN_VER == "prod" else "stag"
stage = "prod" if settings.RUN_MODE == "PRODUCT" else "stag"

# api provider
if provider == APIProvider.ESB:
Expand Down

0 comments on commit cb8b46b

Please sign in to comment.