Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
8d8698def8
commit
c0d3c74c04
@@ -284,6 +284,11 @@ const IMPORTERS: ImporterConfig[] = [
|
||||
// in batched upserts where Postgrest sends the column union.
|
||||
r.status = "intake";
|
||||
}
|
||||
// Default opened_at to today when missing — avoids NULL violations
|
||||
// in batched upserts where Postgrest sends the column union.
|
||||
if (!r.opened_at) {
|
||||
r.opened_at = new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
// Normalise billing method
|
||||
if (r.billing_method) {
|
||||
const bm = String(r.billing_method).toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user