iachat/spec/services/whatsapp/providers
gabrieljablonski 0da4c52ee8 fix(baileys): handle array response in on_whatsapp endpoint
The Baileys `/on-whatsapp` endpoint can return a bare JSON array instead
of a hash with a `data` key. Calling `Array#dig` with a string key
raises `TypeError (no implicit conversion of String into Integer)`,
causing a 500 error. Handle both response shapes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 16:41:22 -03:00
..
whatsapp360_dialog_service_spec.rb feat: Add i18n on whatsapp list button (#10852) 2025-06-11 22:19:36 -04:00
whatsapp_baileys_service_spec.rb fix(baileys): handle array response in on_whatsapp endpoint 2026-03-20 16:41:22 -03:00
whatsapp_cloud_service_spec.rb fix: normalize audio/opus content type to audio/ogg for WhatsApp attachments (#223) 2026-02-24 22:01:18 -03:00
whatsapp_zapi_service_spec.rb test: fix ci (#203) 2026-01-30 22:31:48 -03:00