From 4251b0baeb466657b7456bee360e02633f2d98c8 Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 8 Sep 2022 11:19:04 +0200 Subject: [PATCH] Removed debug logs --- back/methods/edi/updateData.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index 747fff4b8..a7375676a 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -211,22 +211,13 @@ module.exports = Self => { const toTable = table.toTable; const baseName = table.fileName; - console.log(`Starting transaction...`); - // const tx = await Self.beginTransaction({}); - console.log(`Started transaction`); - // try { - // const options = {transaction: tx}; - console.log(`Emptying table ${toTable}...`); const tableName = `edi.${toTable}`; await Self.rawSql(`DELETE FROM ??`, [tableName]); - console.log(`Reading files...`); const dirFiles = await fs.readdir(tempDir); const files = dirFiles.filter(file => file.startsWith(baseName)); - console.log('Files to import: ' + files.join(', ')); - for (const file of files) { console.log(`Dumping data from file ${file}...`); @@ -242,13 +233,6 @@ module.exports = Self => { `, [new Date(), baseName], options); } - // await tx.commit(); - // console.log(`Closed transaction`); - // } catch (error) { - // await tx.rollback(); - // console.log(error); - // throw error; - // } console.log(`Updated table ${toTable}\n`); } };