fix: set account_id on PsaPostLog in psa_post_to_ticket (missed third write path); fix get_admin_db docstring

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-04-10 07:12:45 +00:00
parent 82ee177d9b
commit ce4cfc3240
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ _admin_session_factory = async_sessionmaker(
async def get_admin_db() -> AsyncGenerator[AsyncSession, None]:
"""Yield an admin DB session (BYPASSRLS). Use only on /admin/* endpoints."""
"""Yield an admin DB session (BYPASSRLS). See module docstring for approved use cases."""
async with _admin_session_factory() as session:
try:
yield session