mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
Фикс. При запуске валюта не сохранялась
This commit is contained in:
parent
3c618331fe
commit
644506ffa4
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue