fix(agent): persist signal incidents with tenant context
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled

This commit is contained in:
ogt
2026-07-10 21:09:31 +08:00
parent c004615220
commit 8aa8967c2b
5 changed files with 83 additions and 6 deletions

View File

@@ -1120,11 +1120,12 @@ class TimelineDBService:
risk_level: str | None = None,
approval_id: str | None = None,
incident_id: str | None = None,
project_id: str | None = None,
) -> dict[str, Any]:
"""
新增時間軸事件
"""
async with get_db_context() as db:
async with get_db_context(project_id) as db:
event = TimelineEvent(
event_type=event_type,
status=status,