fix(flywheel): 修正 incidents.outcomes → outcome 欄位錯誤
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
GET /api/v1/stats/summary 觸發 UndefinedColumnError: column "outcomes" does not exist 實際欄位為 incidents.outcome (json 型別) 2026-04-16 Claude Sonnet 4.6 Asia/Taipei Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -311,7 +311,7 @@ class FlywheelStatsService:
|
||||
success_q = await db.execute(
|
||||
text(
|
||||
"SELECT COUNT(*) FROM incidents WHERE created_at >= :today"
|
||||
" AND outcomes::text LIKE '%execution_success%true%'"
|
||||
" AND outcome::text LIKE '%execution_success%true%'"
|
||||
),
|
||||
{"today": today_start},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user