Fix: body {{1}}=contact_name, button {{1}}=event_id (separate parameters)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
368e036235
commit
cf9f1a6f68
@ -9,7 +9,7 @@
|
|||||||
"header_params": [],
|
"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_text": "היי {{1}},\nאנחנו שמחים ומתרגשים להזמין אותך לחתונה שלנו 🤍🥂\n\nנשמח מאוד לראותכם ביום {{2}} ה-{{3}} ב\"{{4}}\", {{5}}.\n\n{{6}} קבלת פנים 🍸\n{{7}} חופה 🤵🏻💍👰🏻♀️\n{{8}} ארוחה וריקודים 🕺🏻💃🏻\n\nמתרגשים לחגוג איתכם,\n{{9}} ו{{10}}\n👰🏻♀️🤍🤵🏻♂",
|
||||||
"body_params": [
|
"body_params": [
|
||||||
"event_id"
|
"contact_name"
|
||||||
],
|
],
|
||||||
"button_type": "URL",
|
"button_type": "URL",
|
||||||
"button_url": "https://invy.dvirlabs.com/guest/{{1}}",
|
"button_url": "https://invy.dvirlabs.com/guest/{{1}}",
|
||||||
|
|||||||
@ -81,8 +81,9 @@ def _fix_template_parameters():
|
|||||||
|
|
||||||
if template:
|
if template:
|
||||||
# Expected correct parameters for hina_invitation
|
# Expected correct parameters for hina_invitation
|
||||||
# Meta template only accepts 1 parameter: event_id for the dynamic URL {{1}}
|
# Body {{1}} = contact_name (guest's name)
|
||||||
expected_params = ["event_id"]
|
# Button {{1}} = event_id (sent as separate button parameter)
|
||||||
|
expected_params = ["contact_name"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
current_params = json.loads(template.body_params)
|
current_params = json.loads(template.body_params)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user