From 0f4e79559fe4880ffc0cac2c417acf23093c17a4 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 18:04:09 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.import.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/settings.import.tsx b/src/routes/settings.import.tsx index 2eca362..34f20ba 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -280,7 +280,9 @@ const IMPORTERS: ImporterConfig[] = [ } else if (s === "on hold" || s === "hold") { r.status = "on_hold"; } else { - delete r.status; + // Default to 'intake' when no explicit status — avoids NULL violations + // in batched upserts where Postgrest sends the column union. + r.status = "intake"; } // Normalise billing method if (r.billing_method) {