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:
parent
98843a80ba
commit
9acf48e78a
1 changed files with 2 additions and 1 deletions
|
|
@ -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>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue