mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
eslint, prettier fix
This commit is contained in:
parent
bdc4450b72
commit
2679fa20d5
10 changed files with 284 additions and 208 deletions
|
@ -8,7 +8,8 @@ const save_crypto = require('./save_crypto');
|
|||
async function main() {
|
||||
const config_schedule = config['currency']['collecting']['schedule'];
|
||||
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();
|
||||
|
@ -21,4 +22,4 @@ async function main() {
|
|||
|
||||
main();
|
||||
|
||||
module.exports = {main};
|
||||
module.exports = { main };
|
||||
|
|
Loading…
Add table
Reference in a new issue