Actualizar server.js

This commit is contained in:
2026-03-19 20:02:23 +00:00
parent 58a24e40b5
commit 62d1b4c6fb

View File

@@ -1313,7 +1313,7 @@ app.get("/public/portal/:token/slots", async (req, res) => {
d.setDate(d.getDate() + 1); d.setDate(d.getDate() + 1);
let daysAdded = 0; let daysAdded = 0;
while(daysAdded < 10) { while(daysAdded < 5) {
// 🛑 NUEVO: Omitir domingos (0) y sábados (6) // 🛑 NUEVO: Omitir domingos (0) y sábados (6)
if (d.getDay() !== 0 && d.getDay() !== 6) { if (d.getDay() !== 0 && d.getDay() !== 6) {
const dateStr = d.toISOString().split('T')[0]; const dateStr = d.toISOString().split('T')[0];