Actualizar server.js
This commit is contained in:
@@ -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]);
|
||||
|
||||
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}`);
|
||||
|
||||
res.json({ ok: true, message: "Automatismo iniciado con " + worker.full_name });
|
||||
|
||||
Reference in New Issue
Block a user