Skip to content

Commit

Permalink
temporary mods
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 5, 2025
1 parent 997d101 commit deb1a8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions backend/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def run_migrations_online() -> None:
asyncio.run(run_async_migrations())


if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
# if context.is_offline_mode():
# run_migrations_offline()
# else:
run_migrations_online()
3 changes: 2 additions & 1 deletion backend/ee/onyx/server/middleware/tenant_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def set_tenant_id(
return await call_next(request)

except Exception as e:
logger.error(f"Error in tenant ID middleware: {str(e)}")
logger.exception(f"Error in tenant ID middleware: {str(e)}")
raise


Expand Down Expand Up @@ -83,6 +83,7 @@ async def _get_tenant_id_from_request(
if tenant_id_from_payload is not None
else POSTGRES_DEFAULT_SCHEMA
)
print("tenant_id", tenant_id)

if not is_valid_schema_name(tenant_id):
raise HTTPException(status_code=400, detail="Invalid tenant ID format")
Expand Down

0 comments on commit deb1a8b

Please sign in to comment.