commit inicial

This commit is contained in:
2026-06-10 14:54:48 -04:00
commit 053f1ea7f6
18 changed files with 1461 additions and 0 deletions

16
src/actualizarToken.js Normal file
View File

@@ -0,0 +1,16 @@
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);
}
});