will.anderson 99ed8b85f7
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 1m17s
Fix webhook failing to update plan for pre-existing Supabase users
supabase_admin_invite re-sends a magic link for users who already have
an account (e.g. signed up via attestation before paying) but does not
touch their user_metadata — leaving plan as "free" after purchase.

Fix: add supabase_admin_update_user (PUT /auth/v1/admin/users/{id})
and call it after every invite so user_metadata is always stamped with
the correct plan, name, and stripe_customer_id. Idempotent for new and
returning users.

Also fix waitlist_upsert to use on_conflict=email,plan so the upsert
works for users who already have a waitlist row from attestation,
rather than silently failing on duplicate key.
2026-05-12 12:31:45 -05:00
S
Description
Neuron marketing site - El-native server
9.7 MiB
Languages
Emacs Lisp 47.1%
C 34.7%
HTML 7.5%
TypeScript 5.4%
JavaScript 2.4%
Other 2.9%