fix(knowledge): entrystatus enum 大小寫修正 'archived' → 'ARCHIVED'
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 12m47s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-06 11:25:44 +08:00
parent b9ee58f752
commit 286a96d1aa

View File

@@ -253,7 +253,7 @@ class KnowledgeService:
"WHERE entry_type = 'anti_pattern' "
"AND symptoms_hash = :hash "
"AND created_at >= :cutoff "
"AND status != 'archived' "
"AND status != 'ARCHIVED' "
"ORDER BY created_at DESC LIMIT 5"
),
{"hash": symptoms_hash, "cutoff": cutoff},