Skip to content

Commit 481bf84

Browse files
committed
fix(enrich): add missing user_id field to enriched contact data
enrich_contacts RPC requires user_id in every contact record. The enrich function was sending enriched data without user_id, causing 'All records in p_contacts_data must contain user_id field' error. Also adds enrich function config to supabase/config.toml for Docker edge runtime registration.
1 parent 1acf0cd commit 481bf84

2 files changed

Lines changed: 724 additions & 0 deletions

File tree

supabase/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,12 @@ entrypoint = "./functions/mining-sources/index.ts"
360360
# For example, if you want to serve static HTML pages in your function:
361361
# static_files = [ "./functions/mining-sources/*.html" ]
362362

363+
[functions.enrich]
364+
enabled = true
365+
verify_jwt = true
366+
import_map = "./functions/enrich/deno.json"
367+
entrypoint = "./functions/enrich/index.ts"
368+
363369
[functions.sms-campaigns]
364370
enabled = true
365371
verify_jwt = false

0 commit comments

Comments
 (0)