fix(approval): sync incidents by incident_id
This commit is contained in:
@@ -336,7 +336,7 @@ class IncidentApprovalService:
|
||||
|
||||
# 4. 更新 Incident 狀態
|
||||
result = await uow.session.execute(
|
||||
select(IncidentRecord).where(IncidentRecord.id == incident_id)
|
||||
select(IncidentRecord).where(IncidentRecord.incident_id == incident_id)
|
||||
)
|
||||
incident = result.scalar_one_or_none()
|
||||
|
||||
@@ -421,7 +421,7 @@ class IncidentApprovalService:
|
||||
|
||||
# 取得 Incident
|
||||
result = await uow.session.execute(
|
||||
select(IncidentRecord).where(IncidentRecord.id == incident_id)
|
||||
select(IncidentRecord).where(IncidentRecord.incident_id == incident_id)
|
||||
)
|
||||
return result.scalar_one_or_none()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user