A full-featured CRM built with React, shadcn/ui, and Supabase.
fix contact creation in inbound email
Jean-Baptiste Kaiser0353acfcc9ce
diff --git a/supabase/functions/postmark/addNoteToContact.ts b/supabase/functions/postmark/addNoteToContact.tsindex e11858c9..e1af4d77 100644--- a/supabase/functions/postmark/addNoteToContact.ts+++ b/supabase/functions/postmark/addNoteToContact.ts@@ -93,7 +93,7 @@ export const addNoteToContact = async ({.insert({first_name: firstName,last_name: lastName,- email: [email],+ email_jsonb: [{ email, type: 'Work' }],company_id: company.id,sales_id: sales.id,first_seen: new Date(),