fix(auth): expose helcimCustomerId on /api/auth/member

The member account page gates the Helcim customer portal link on
`memberData.helcimCustomerId`, but this endpoint (the source for
`useAuth().memberData`) omitted the field, so the link hid for every
member regardless of Helcim enrollment. Add the field to the response.
This commit is contained in:
Jennie Robinson Faber 2026-04-19 13:04:46 +01:00
parent f2e2cedb67
commit 0ca38e5588

View file

@ -13,6 +13,7 @@ export default defineEventHandler(async (event) => {
circle: member.circle, circle: member.circle,
contributionTier: member.contributionTier, contributionTier: member.contributionTier,
billingCadence: member.billingCadence, billingCadence: member.billingCadence,
helcimCustomerId: member.helcimCustomerId,
membershipLevel: `${member.circle}-${member.contributionTier}`, membershipLevel: `${member.circle}-${member.contributionTier}`,
// Profile fields // Profile fields
pronouns: member.pronouns, pronouns: member.pronouns,