diff --git a/robot.js b/robot.js index f7638e4..24ea380 100644 --- a/robot.js +++ b/robot.js @@ -236,14 +236,15 @@ async function main() { } catch (e) { continue; } } - if (scrapData && scrapData['Nombre Cliente']) { + if (scrapData && scrapData['Nombre Cliente']) { const idGremioDetectado = clasificarGremio(scrapData['Descripción'], gremiosDB); if (idGremioDetectado) { scrapData['guild_id'] = idGremioDetectado; } await saveServiceToDB(ownerId, 'multiasistencia', ref, scrapData); } - } catch (e) { + } // <--- ESTA LLAVE CIERRA EL BUCLE FOR + } catch (e) { // <--- ESTA LLAVE CIERRA EL BLOQUE TRY console.error("❌ Error Multi:", e.message); } finally { await browser.close();