Actualizar server.js

This commit is contained in:
2026-04-03 11:56:48 +00:00
parent a4ab87ef42
commit 8d1bb4a169

View File

@@ -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;
}