From b98ac4f233399a400ea9ee71b57202490bc88036 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 3 Jun 2022 12:18:06 +0200 Subject: [PATCH] Debugging logs --- back/methods/edi/updateData.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index 2b7fbaa31..fda4d8443 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -81,6 +81,8 @@ module.exports = Self => { } const AdmZip = require('adm-zip'); + console.log(paths.remoteFile); + console.log(paths.tempFile); const zip = new AdmZip(paths.tempFile); const entries = zip.getEntries(); @@ -131,8 +133,8 @@ module.exports = Self => { const rawPath = path.join(paths.tempDir, entryName); + const tx = await Self.beginTransaction({}); try { - const tx = await Self.beginTransaction({}); const options = {transaction: tx}; const tableName = `edi.${toTable}`;