mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat(gateway): include Slack in gateway maintenance
This commit is contained in:
parent
9c7e093db4
commit
b5cc19843c
1 changed files with 7 additions and 0 deletions
|
|
@ -85,6 +85,13 @@ def gateway_health_check_task() -> None:
|
|||
if key in metadata:
|
||||
cursor_state[key] = metadata[key]
|
||||
account.cursor_state = cursor_state
|
||||
elif account.platform == ExternalChatPlatform.SLACK:
|
||||
cursor_state = dict(account.cursor_state or {})
|
||||
for key in ("team_id", "team", "bot_user_id", "bot_username"):
|
||||
if key in metadata:
|
||||
cursor_state[key] = metadata[key]
|
||||
account.cursor_state = cursor_state
|
||||
account.bot_username = metadata.get("bot_username")
|
||||
except Exception:
|
||||
logger.warning(
|
||||
"External chat health check failed platform=%s account_id=%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue