fix: create customer

This commit is contained in:
John Yeo
2025-03-27 21:46:09 -07:00
parent 680f127e35
commit 20a87075db
2 changed files with 2 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ export const createStripeCustomer = async ({
name: customer.name || undefined,
email: customer.email || undefined,
metadata: {
autumn_id: customer.id,
autumn_id: customer.id || null,
autumn_internal_id: customer.internal_id,
},
test_clock: testClockId,

View File

@@ -109,6 +109,7 @@ export const createNewCustomer = async ({
const customerData: Customer = {
...parsedCustomer,
id: parsedCustomer.id || null,
name: parsedCustomer.name || "",
email:
parsedCustomer.email ||