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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user