Fix: hina_invitation template should have only 1 parameter (event_id) not 10
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
9e3d861f3d
commit
368e036235
@ -9,16 +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": [
|
||||
"contact_name",
|
||||
"event_date",
|
||||
"event_date_day",
|
||||
"venue",
|
||||
"location",
|
||||
"reception_time",
|
||||
"ceremony_time",
|
||||
"dinner_time",
|
||||
"bride_name",
|
||||
"groom_name"
|
||||
"event_id"
|
||||
],
|
||||
"button_type": "URL",
|
||||
"button_url": "https://invy.dvirlabs.com/guest/{{1}}",
|
||||
|
||||
@ -81,10 +81,8 @@ def _fix_template_parameters():
|
||||
|
||||
if template:
|
||||
# Expected correct parameters for hina_invitation
|
||||
expected_params = [
|
||||
"contact_name", "event_date", "event_date_day", "venue", "location",
|
||||
"reception_time", "ceremony_time", "dinner_time", "bride_name", "groom_name"
|
||||
]
|
||||
# Meta template only accepts 1 parameter: event_id for the dynamic URL {{1}}
|
||||
expected_params = ["event_id"]
|
||||
|
||||
try:
|
||||
current_params = json.loads(template.body_params)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user