Files
flexy-multivende/src/actualizarToken.js
2026-06-10 15:44:19 -04:00

29 lines
632 B
JavaScript

// 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();