From 801905c08169d7625708cf04de7a14e3e99e5e52 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 17 Feb 2022 17:33:32 +0300 Subject: [PATCH] Update export.js --- scripts/db/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db/export.js b/scripts/db/export.js index 1c850527..97e5d347 100644 --- a/scripts/db/export.js +++ b/scripts/db/export.js @@ -8,7 +8,7 @@ async function main() { const files = await file.list(`${DATA_DIR}/*.csv`) for (const filepath of files) { const filename = file.getFilename(filepath) - const json = await csv.load(filepath).catch(err => { + const json = await csv.fromFile(filepath).catch(err => { logger.error(chalk.red(`\n${err.message} (${filepath})`)) process.exit(1) })