mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
feat(gateway): enhance WhatsApp account management and connection handling
This commit is contained in:
parent
2d1a6be776
commit
a151e8f729
3 changed files with 399 additions and 210 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue