• Joined on 2026-08-03
ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

Si llaman al API directo con un número que ya trae '549', normalizarTelefono lo deja y aFormatoWhatsapp le agrega otro '549'. El frontend lo evita (maxLength=10), pero el backend no se protege.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#5 2026-08-05 14:59:34 -03:00
fix: guardar el telefono en el formato que usa WhatsApp

La validación no rechaza números que empiezan con '15' (prefijo móvil antiguo). El comentario dice 'sin el 15' pero el código solo chequea '0'.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:47 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:47 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

preview_url hardcoded to false; URLs in text messages won't show previews. Make configurable if needed.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:47 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:47 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

firmaValida returns false when WHATSAPP_APP_SECRET is missing, which may hide configuration errors in production.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

marcarLeido reuses postMensaje which is semantically for sending messages; consider a dedicated low-level POST helper.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

enviarRespuestas ignores individual send failures; a failed message won't stop the loop but errors are lost.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Spread operator allows payload to overwrite messaging_product; use explicit object to avoid accidents.

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

Inline review

ai-bot commented on pull request jpbeldomenico/taller_automotriz#4 2026-08-05 12:11:46 -03:00
feat: bot de reservas por WhatsApp (F0) y flujo web jefe -> trabajo

fetch has no timeout; a stalled request can hang indefinitely.