Actualizar server.js

This commit is contained in:
2026-02-15 21:03:20 +00:00
parent dc3ce6a415
commit 996846f54b

View File

@@ -452,7 +452,7 @@ app.post("/providers/automate/:id", authMiddleware, async (req, res) => {
await pool.query(`INSERT INTO assignment_pings (scraped_id, user_id, token, expires_at) VALUES ($1, $2, $3, $4)`, [id, worker.id, token, expiresAt]); await pool.query(`INSERT INTO assignment_pings (scraped_id, user_id, token, expires_at) VALUES ($1, $2, $3, $4)`, [id, worker.id, token, expiresAt]);
const link = `https://integrarepara.es/aceptar.html?t=${token}`; const link = `https://web.integrarepara.es/aceptar.html?t=${token}`;
await sendWhatsAppAuto(worker.phone, `🛠️ *NUEVO SERVICIO*\nCP: ${cp}\n🔗 ${link}`); await sendWhatsAppAuto(worker.phone, `🛠️ *NUEVO SERVICIO*\nCP: ${cp}\n🔗 ${link}`);
res.json({ ok: true, message: "Automatismo iniciado con " + worker.full_name }); res.json({ ok: true, message: "Automatismo iniciado con " + worker.full_name });