mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
Теперь при запуске одного из JS сервисов, будет создаваться таблицы, если их нет
This commit is contained in:
parent
9443efae46
commit
a6c2dc7b06
3 changed files with 18 additions and 0 deletions
|
@ -6,6 +6,8 @@ const save_fiat = require('./save_fiat');
|
|||
const save_crypto = require('./save_crypto');
|
||||
|
||||
async function main() {
|
||||
await require('../shared/database/src/create_table')();
|
||||
|
||||
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 }))
|
||||
|
|
Loading…
Add table
Reference in a new issue