ghostguild-org/server/api
Jennie Robinson Faber 5023fb14ad fix(server): treat contributionAmount as cadence-unit (drop ×12)
ContributionAmountField now emits cadence-unit values (180 for $180/yr,
15 for $15/mo). Server endpoints were still multiplying annual by 12,
which would have charged $2160/yr instead of $180/yr after the form
ports in Tasks 2–3.

- helcim/subscription.post.js: recurringAmount = contributionAmount
  (no more × 12 for annual)
- members/update-contribution.post.js: same drop in both Case 1
  (free→paid) and Case 3 (paid→paid)
- slack.ts notifyNewMember: new positional `cadence` param so the
  Slack notification suffix renders /yr or /mo instead of hardcoded
  /month; all three call sites updated to pass member.billingCadence
- tests updated to match the new contract:
  - helcim-subscription.test.js: annual tests now send the cadence-
    unit amount (180, 600) and expect the same recurringAmount
  - update-contribution.test.js: annual Case 1 and Case 3 tests
    updated likewise
2026-05-23 15:37:52 +01:00
..
admin feat(admin-tags): POST /api/admin/tags to create craft/cooperative tags 2026-05-21 17:51:01 +01:00
auth fix(api): expose slackInvited + drop slackInviteStatus from member payloads 2026-04-30 22:25:35 +01:00
board refactor(board): atomic delete + query limit + composable cleanup 2026-04-15 12:47:53 +01:00
dev feat(server): rename contributionTier → contributionAmount in routes + utils 2026-04-19 18:44:29 +01:00
events feat(events): markdown body, registered indicator, drop capacity counters 2026-05-21 17:50:48 +01:00
helcim fix(server): treat contributionAmount as cadence-unit (drop ×12) 2026-05-23 15:37:52 +01:00
internal fix(reconcile): pass customerCode (not helcimCustomerId) to Helcim transactions API 2026-04-27 19:31:59 +01:00
invite Various pre-launch fixes. 2026-05-22 18:53:07 +01:00
members fix(server): treat contributionAmount as cadence-unit (drop ×12) 2026-05-23 15:37:52 +01:00
onboarding feat(member): account/profile polish + tier upgrade flow 2026-04-14 20:35:37 +01:00
series refactor(series): extract loadPublicSeries helper 2026-04-27 19:16:32 +01:00
site-content New SiteContent. 2026-04-16 21:11:14 +01:00
tags feat: add Tags API endpoints and validation schemas 2026-04-05 16:15:29 +01:00
upload Add Zod validation, fix mass assignment, remove test endpoints and dead code 2026-03-01 14:02:46 +00:00
wiki fix: rename hasEngagedEcology → hasEngagedBoard in onboarding status, clean up stale ecology references 2026-04-14 12:25:24 +01:00
health.get.js feat: add /api/health endpoint for uptime monitoring 2026-04-04 12:35:26 +01:00