mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
Добавил логгер
This commit is contained in:
parent
3cfc494ba6
commit
bcdf26416a
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ const cron = require('cron-validator');
|
||||||
const save_fiat = require('./save_fiat');
|
const save_fiat = require('./save_fiat');
|
||||||
const save_crypto = require('./save_crypto');
|
const save_crypto = require('./save_crypto');
|
||||||
|
|
||||||
|
const logger = require('../shared/logger/src/main.js');
|
||||||
|
|
||||||
async function validateSchedule(schedule) {
|
async function validateSchedule(schedule) {
|
||||||
if (!schedule) throw new Error('The crontab schedule is not set');
|
if (!schedule) throw new Error('The crontab schedule is not set');
|
||||||
if (!cron.isValidCron(schedule, { alias: true }))
|
if (!cron.isValidCron(schedule, { alias: true }))
|
||||||
|
|
Loading…
Add table
Reference in a new issue