Добавил логгер

This commit is contained in:
Данил 2024-10-21 21:32:23 +03:00
parent 3cfc494ba6
commit bcdf26416a

View file

@ -5,6 +5,8 @@ const cron = require('cron-validator');
const save_fiat = require('./save_fiat');
const save_crypto = require('./save_crypto');
const logger = require('../shared/logger/src/main.js');
async function validateSchedule(schedule) {
if (!schedule) throw new Error('The crontab schedule is not set');
if (!cron.isValidCron(schedule, { alias: true }))