mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
feat(collect-currency): Bringing back cryptocurrency rate collection
This commit is contained in:
parent
e2cb35a880
commit
82ad228c1a
2 changed files with 60 additions and 1 deletions
|
@ -3,6 +3,7 @@ const config = require('../shared/config/src/main.js')();
|
|||
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) {
|
||||
|
@ -16,7 +17,7 @@ async function initialize() {
|
|||
}
|
||||
|
||||
async function runTasks() {
|
||||
await Promise.all([save_fiat()]);
|
||||
await Promise.all([save_fiat(), save_crypto()]);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue