Add guest_id parameter for dynamic button URLs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dvirlabs 2026-05-12 09:22:50 +03:00
parent cc538a0c4d
commit 778db17e46
2 changed files with 3 additions and 1 deletions

View File

@ -934,6 +934,7 @@ async def send_wedding_invitation_bulk(
"event_date": event_date,
"event_time": event_time,
"guest_link": per_guest_link,
"guest_id": str(guest.id), # guest UUID for button {{1}}
}
# Merge extra_params (user-supplied values for custom param keys)

View File

@ -10,7 +10,8 @@ const PARAM_OPTIONS = [
{ key: 'venue', label: 'שם האולם', sample: 'אולם הגן' },
{ key: 'event_date', label: 'תאריך האירוע', sample: '15/06' },
{ key: 'event_time', label: 'שעת ההתחלה', sample: '18:30' },
{ key: 'guest_link', label: 'קישור RSVP', sample: 'https://invy.dvirlabs.com/guest' },
{ key: 'guest_link', label: 'קישור RSVP מלא', sample: 'https://invy.dvirlabs.com/guest/abc123' },
{ key: 'guest_id', label: 'מזהה אורח (לכפתור)', sample: '4a0fd7f0-80c8-4832-8d82-984df7d25b60' },
]
const SAMPLE_MAP = Object.fromEntries(PARAM_OPTIONS.map(o => [o.key, o.sample]))