fix(analyzer): priorities has no is_deleted column

Filter-options endpoint was rejecting from the priorities subquery, and
because all six lookups run in Promise.all the whole endpoint failed
with HTTP 500 — leaving every multi-select dropdown empty including
Client. priorities is a small reference table with no soft-delete; just
filter on is_active.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
lorentz 2026-04-29 14:36:22 -04:00
parent 98843a80ba
commit 9acf48e78a

View file

@ -52,8 +52,9 @@ export async function GET() {
ORDER BY sort_order NULLS LAST, label`
),
postgresClient.query<PriorityRow>(
// priorities has no is_deleted column (no soft-delete on this small table)
`SELECT value, label FROM priorities
WHERE is_active = true AND is_deleted = false
WHERE is_active = true
ORDER BY value`
),
postgresClient.query<ResourceRow>(