From 8d1bb4a169686287ce84515f69fde05f1fa2b592 Mon Sep 17 00:00:00 2001 From: marsalva Date: Fri, 3 Apr 2026 11:56:48 +0000 Subject: [PATCH] Actualizar server.js --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 39c4fcb..44a390a 100644 --- a/server.js +++ b/server.js @@ -4533,7 +4533,7 @@ app.post("/webhook/evolution", async (req, res) => { const lastMsg = checkHumanQ.rows[0]; const diffMinutos = (Date.now() - new Date(lastMsg.created_at).getTime()) / (1000 * 60); - if (diffMinutos < 120) { + if (diffMinutos < 0) { console.log(`🛡️ [ESCUDO IA] Silenciada porque un humano habló hace ${Math.round(diffMinutos)} minutos.`); return; }