Actualizar server.js
This commit is contained in:
@@ -856,7 +856,6 @@ async function procesarConIA(ownerId, mensajeCliente, datosExpediente) {
|
|||||||
const esPrimerMensaje = historialChat.length === 0;
|
const esPrimerMensaje = historialChat.length === 0;
|
||||||
|
|
||||||
let agendaOcupadaTexto = "El técnico tiene la agenda libre en horario laboral.";
|
let agendaOcupadaTexto = "El técnico tiene la agenda libre en horario laboral.";
|
||||||
let agendaOcupadaTexto = "El técnico tiene la agenda libre en horario laboral.";
|
|
||||||
if (datosExpediente.worker_id) {
|
if (datosExpediente.worker_id) {
|
||||||
// 🛑 AÑADIDO: Consulta avanzada que lee Duraciones, Bloqueos y Citas Pendientes
|
// 🛑 AÑADIDO: Consulta avanzada que lee Duraciones, Bloqueos y Citas Pendientes
|
||||||
const agendaQ = await pool.query(`
|
const agendaQ = await pool.query(`
|
||||||
|
|||||||
Reference in New Issue
Block a user