Actualizar server.js
This commit is contained in:
@@ -642,9 +642,9 @@ async function triggerWhatsAppEvent(ownerId, serviceId, eventType) {
|
||||
// 2. Buscamos qué plantilla corresponde a este evento
|
||||
const tplTypeMap = {
|
||||
'wa_evt_welcome': 'welcome',
|
||||
'wa_evt_assigned': 'assigned', // NUEVO: Asignado a operario
|
||||
'wa_evt_date': 'appointment', // Plantilla: Cita Creada
|
||||
'wa_evt_update': 'update', // Plantilla: Modificación de Servicio
|
||||
'wa_evt_assigned': 'assigned', // <--- Añadir esta línea
|
||||
'wa_evt_date': 'appointment',
|
||||
'wa_evt_update': 'update',
|
||||
'wa_evt_onway': 'on_way',
|
||||
'wa_evt_survey': 'survey'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user