From d78c6b1f6669b3a5a87fcb0a6f5a536149dcd22a Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 13 Jul 2021 14:21:51 +0200 Subject: [PATCH] fix check error & update blacklist --- app.js | 9 +++++++-- blacklist.csv | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index fbad538d..fd5467f3 100644 --- a/app.js +++ b/app.js @@ -88,7 +88,9 @@ if (!_.isEmpty(config.apikey)) { }) .catch((err) => { cmlog.error(new Error(`Error => "${cryptoName} ${err}"`)); - if (err && err.response && err.response.status === 400) { + + //&& err.response && err.response.status === 400 + if (err) { cmlog.error(new Error(`Crypto icon not found => "${cryptoName}"`)); const csvWriter = createCsvWriter({ @@ -100,9 +102,12 @@ if (!_.isEmpty(config.apikey)) { const records = [{ name: cryptoName }]; csvWriter - .writeRecords(records) // returns a promise + .writeRecords(records) .then(() => { cmlog.info(`Crypto add blacklist => ${cryptoName}"`); + }) + .catch((err) => { + cmlog.error(new Error(`Error write icon in blacklist => "${cryptoName}"`)); }); } }); diff --git a/blacklist.csv b/blacklist.csv index f6deadd7..cab71861 100644 --- a/blacklist.csv +++ b/blacklist.csv @@ -14,9 +14,14 @@ xtoken wntr kei peepo +crazytime hina charixtoken bite avatar pawg clit +hdpф +τbtc +τdoge +tulip₿