diff --git a/backend/custom_templates.json b/backend/custom_templates.json index 8bbf0f9..c31743b 100644 --- a/backend/custom_templates.json +++ b/backend/custom_templates.json @@ -9,7 +9,7 @@ "header_params": [], "body_text": "היי {{1}},\nאנחנו שמחים ומתרגשים להזמין אותך לחתונה שלנו 🤍🥂\n\nנשמח מאוד לראותכם ביום {{2}} ה-{{3}} ב\"{{4}}\", {{5}}.\n\n{{6}} קבלת פנים 🍸\n{{7}} חופה 🤵🏻💍👰🏻‍♀️\n{{8}} ארוחה וריקודים 🕺🏻💃🏻\n\nמתרגשים לחגוג איתכם,\n{{9}} ו{{10}}\n👰🏻‍♀️🤍🤵🏻‍♂", "body_params": [ - "event_id" + "contact_name" ], "button_type": "URL", "button_url": "https://invy.dvirlabs.com/guest/{{1}}", diff --git a/backend/main.py b/backend/main.py index 4816928..46bf417 100644 --- a/backend/main.py +++ b/backend/main.py @@ -81,8 +81,9 @@ def _fix_template_parameters(): if template: # Expected correct parameters for hina_invitation - # Meta template only accepts 1 parameter: event_id for the dynamic URL {{1}} - expected_params = ["event_id"] + # Body {{1}} = contact_name (guest's name) + # Button {{1}} = event_id (sent as separate button parameter) + expected_params = ["contact_name"] try: current_params = json.loads(template.body_params)