From bf37441987bb77b7223bc940b811e853c75bc4d1 Mon Sep 17 00:00:00 2001 From: Redume Date: Wed, 31 Jul 2024 12:48:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BD?= =?UTF-8?q?=D1=83=D0=B6=D0=BD=D1=8B=D0=B5=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D0=BE=D1=82=D0=B5=D0=BA=D0=B8,=20=D0=BF=D0=BE=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=8F=D0=BB=20=D0=BD=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B8=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collect-currency/save_fiat.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/collect-currency/save_fiat.js b/collect-currency/save_fiat.js index 74eed72..1f6b0d6 100644 --- a/collect-currency/save_fiat.js +++ b/collect-currency/save_fiat.js @@ -1,8 +1,6 @@ const pool = require('../database/postgresql.js'); -const yaml = require('yaml'); -const fs = require('fs'); const axios = require('axios'); -const config = yaml.parse(fs.readFileSync('./config.yaml', 'utf-8')); +const config = require('../config/main.js')(); async function save_fiat() { if (!config['currency']['collecting']['fiat']) return;