Фикс. При запуске валюта не сохранялась

This commit is contained in:
Данил 2024-08-03 00:02:28 +03:00
parent 3c618331fe
commit 644506ffa4

View file

@ -10,6 +10,9 @@ async function main() {
if (!config_schedule) throw new Error('The crontab schedule is not set'); if (!config_schedule) throw new Error('The crontab schedule is not set');
if (!cron.isValidCron(config_schedule, {alias: true})) throw new Error('The crontab is invalid'); if (!cron.isValidCron(config_schedule, {alias: true})) throw new Error('The crontab is invalid');
await save_fiat();
await save_crypto();
schedule.scheduleJob(config_schedule, async function () { schedule.scheduleJob(config_schedule, async function () {
await save_fiat(); await save_fiat();
await save_crypto(); await save_crypto();