Actualizar server.js

This commit is contained in:
2026-03-28 19:32:02 +00:00
parent baf0d0a98c
commit b730362954

View File

@@ -2568,8 +2568,8 @@ app.put("/services/set-appointment/:id", authMiddleware, async (req, res) => {
})();
} catch (e) {
console.error("Error agendando cita:", e);
if (!res.headersSent) res.status(500).json({ ok: false });
console.error("❌ ERROR EXACTO AL CAMBIAR ESTADO/CITA:", e.stack);
if (!res.headersSent) res.status(500).json({ ok: false, error: e.message, stack: e.stack });
}
});