Skip to content

Commit

Permalink
feat: update key names
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 10, 2024
1 parent 34cd555 commit 6f572f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
else:
db_credentials = get_secret("stori-database-credentials")

os.environ["POSTGRES_USER"] = db_credentials["username"]
os.environ["POSTGRES_PASSWORD"] = db_credentials["password"]
os.environ["POSTGRES_HOST"] = db_credentials["host"]
os.environ["POSTGRES_DB"] = db_credentials["database"]
os.environ["POSTGRES_USER"] = db_credentials["POSTGRES_USER"]
os.environ["POSTGRES_PASSWORD"] = db_credentials["POSTGRES_PASSWORD"]
os.environ["POSTGRES_HOST"] = db_credentials["POSTGRES_HOST"]
os.environ["POSTGRES_DB"] = db_credentials["POSTGRES_DB"]

SQLALCHEMY_DATABASE_URL = f"postgresql://{os.environ['POSTGRES_USER']}:{os.environ['POSTGRES_PASSWORD']}@{os.environ['POSTGRES_HOST']}/{os.environ['POSTGRES_DB']}"

Expand Down

0 comments on commit 6f572f9

Please sign in to comment.