Actualizar server.js
This commit is contained in:
@@ -1314,7 +1314,8 @@ app.get("/public/portal/:token/slots", async (req, res) => {
|
||||
|
||||
let daysAdded = 0;
|
||||
while(daysAdded < 10) {
|
||||
if (d.getDay() !== 0) { // Omitir domingos
|
||||
// 🛑 NUEVO: Omitir domingos (0) y sábados (6)
|
||||
if (d.getDay() !== 0 && d.getDay() !== 6) {
|
||||
const dateStr = d.toISOString().split('T')[0];
|
||||
const dayData = agendaMap[dateStr];
|
||||
let isDayAllowed = true;
|
||||
|
||||
Reference in New Issue
Block a user