Skip to content

Commit 7ab30f1

Browse files
committed
Fix pg initialization
1 parent d5daeaf commit 7ab30f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ee/db_router.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ async def get_vector_store_for_app(app_id: str | None):
173173
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
174174

175175
if uri is None:
176-
# Should not happen – fallback to control-plane vector store
177-
settings = get_settings()
178-
return PGVectorStore(uri=settings.POSTGRES_URI)
176+
# No dedicated DB for this app (Free/Pro) –> use shared store
177+
return await get_vector_store_for_app(None)
179178

180179
parsed = urlparse(uri)
181180

0 commit comments

Comments
 (0)