Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: send NOT_PROVIDED if certain form field was not entered

dshukertjr9a3b9196d029
diff --git a/apps/www/supabase/functions/hubspot-notification/index.ts b/apps/www/supabase/functions/hubspot-notification/index.ts
index e26d917cfee..00fd315ed26 100644
--- a/apps/www/supabase/functions/hubspot-notification/index.ts
+++ b/apps/www/supabase/functions/hubspot-notification/index.ts
@@ -50,7 +50,7 @@ serve(async (req) => {
const fields: { objectTypeId: '0-1'; name: string; value: string }[] = []
for (const [key, value] of Object.entries(formData)) {
- fields.push({ objectTypeId: '0-1', name: key, value: value })
+ fields.push({ objectTypeId: '0-1', name: key, value: value || 'NOT_PROVIDED' })
}
const formId = input.table === 'partner_contacts' ? PARTNER_FORM_ID : ENTERPRISE_FORM_ID