Default missing status to intake

X-Lovable-Edit-ID: edt-75f7d279-97a2-492b-aba3-bf5d6fa268a9
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 18:04:16 +00:00
co-authored by renee-png
+3 -1
View File
@@ -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) {