feat(gateway): enhance WhatsApp account management and connection handling

This commit is contained in:
Anish Sarkar 2026-06-01 22:49:46 +05:30
parent 2d1a6be776
commit a151e8f729
3 changed files with 399 additions and 210 deletions

View file

@ -85,6 +85,8 @@ async def request_pairing_code(
account.mode = ExternalChatAccountMode.SELF_HOST_BYO
account.owner_search_space_id = body.search_space_id
account.health_status = ExternalChatHealthStatus.UNKNOWN
account.suspended_at = None
account.suspended_reason = None
account.last_health_check_at = datetime.now(UTC)
await session.commit()
await session.refresh(account)