mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: send NOT_PROVIDED if certain form field was not entered
This commit is contained in:
1 parent
b0c92f9db7
commit
9a3b9196d0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user