// import cron from 'node-cron'; import { actualizarToken } from './procesos/autenticacion.js'; // import { multivendeConfig } from './config.js'; // console.log("ACTUALIZACIÓN DE ACCESS TOKEN MULTIVENDE") // await actualizarToken(); // cron.schedule('0 */6 * * *', async () => { // try { // await actualizarToken(); // } catch (error) { // console.log("Error", error); // } // }); async function main() { try { await actualizarToken(); } catch (error) { console.log("Error", error); process.exit(1); // Importante para que Dokploy sepa que falló } } main();