fix(incidents): bind durable readback tenant context

This commit is contained in:
ogt
2026-07-11 20:10:17 +08:00
parent 476c6a6315
commit ca5ed596dc
6 changed files with 79 additions and 18 deletions

View File

@@ -125,7 +125,11 @@ class IIncidentRepository(Protocol):
"""根據 ID 取得 Incident"""
...
async def get_active(self) -> list[Incident]:
async def get_active(
self,
*,
project_id: str | None = None,
) -> list[Incident]:
"""取得所有活躍的 Incident"""
...