fix(activity): cadence-aware suffixes on contribution log entries

This commit is contained in:
Jennie Robinson Faber 2026-05-23 16:18:32 +01:00
parent 10f8cab6e3
commit e5f1e9f95e
3 changed files with 17 additions and 11 deletions

View file

@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => {
// Log contribution change (fire-and-forget, at the top so it logs regardless of which case path executes)
const logContributionChange = () => {
logActivity(member._id, 'contribution_changed', { from: oldAmount, to: newAmount })
logActivity(member._id, 'contribution_changed', { from: oldAmount, to: newAmount, cadence: body.cadence })
}
const oldRequiresPayment = requiresPayment(oldAmount);