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

@@ -1102,6 +1102,7 @@ async def psa_post_to_ticket(
# Log to audit trail
log_entry = PsaPostLog(
session_id=session.id,
account_id=session.account_id,
psa_connection_id=psa_connection.id if psa_connection else None,
ticket_id=session.psa_ticket_id,
note_type=data.note_type,