Use hina_invitation template in test endpoint (exists in built-in templates)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dvirlabs 2026-05-13 17:32:21 +03:00
parent a1139e0f23
commit eba57bd81a

View File

@ -2001,13 +2001,14 @@ async def test_whatsapp_send(
service = get_whatsapp_service(db) service = get_whatsapp_service(db)
# Send with only contact_name - minimal test # Send with minimal parameters - just for testing
params = { params = {
"contact_name": "Test" "contact_name": "Test",
"event_id": "test-event-123"
} }
# Use wedding_invitation_by_vered template (only requires contact_name) # Use hina_invitation template (only requires contact_name and event_id)
template_key = "wedding_invitation_by_vered" template_key = "hina_invitation"
result = await service.send_by_template_key( result = await service.send_by_template_key(
template_key=template_key, template_key=template_key,