fix(telegram): sync rejected polling callbacks
This commit is contained in:
@@ -7171,6 +7171,27 @@ class TelegramGateway:
|
||||
username=username,
|
||||
execution_triggered=False,
|
||||
)
|
||||
try:
|
||||
from src.services.incident_approval_service import (
|
||||
get_incident_approval_service,
|
||||
)
|
||||
|
||||
await get_incident_approval_service().on_approval_status_change(
|
||||
approval_id=str(approval_uuid),
|
||||
new_status="rejected",
|
||||
)
|
||||
logger.info(
|
||||
"telegram_rejection_incident_synced_via_polling",
|
||||
approval_id=str(approval_uuid),
|
||||
incident_id=getattr(approval, "incident_id", None),
|
||||
)
|
||||
except Exception as _sync_e:
|
||||
logger.warning(
|
||||
"telegram_rejection_incident_sync_failed_via_polling",
|
||||
approval_id=str(approval_uuid),
|
||||
incident_id=getattr(approval, "incident_id", None),
|
||||
error=str(_sync_e),
|
||||
)
|
||||
|
||||
elif action == "tune":
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user