Add auto pull

This commit is contained in:
2025-07-20 18:49:20 -04:00
parent 90a57f8b14
commit 9e6d1d028d

View File

@ -1,18 +1,12 @@
import { CronJob } from 'cron';
import { pullData } from './lib/united.js';
/*
const job = new CronJob(
'10 0 * * * *', // cronTime
'0,30 * * * *', // cronTime
async function () {
const startDate = Math.floor(
new Date(new Date().getFullYear(), new Date().getMonth()).getTime() / 1000
);
const res = await fetchAccounts(startDate);
await updateAccounts(res);
await runRules();
pullData(20);
}, // onTick
null, // onComplete
true, // start
'America/Detroit' // timeZone
);
*/