Skip to content

Commit 6edc9f4

Browse files
author
Bob Tabor
committed
Fix connection string fix
1 parent ffbce01 commit 6edc9f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/fastapi_app/models.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from sqlmodel import Field, SQLModel, create_engine
66

77
sql_url = ""
8-
if os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING"):
9-
sql_url = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
8+
if os.getenv("AZURE_POSTGRESQL_CONNECTIONSTRING"):
9+
sql_url = os.getenv("AZURE_POSTGRESQL_CONNECTIONSTRING")
1010
else:
1111
POSTGRES_USERNAME = os.environ.get("DBUSER")
1212
POSTGRES_PASSWORD = os.environ.get("DBPASS")

0 commit comments

Comments
 (0)