diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index af0653672..747fff4b8 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -91,6 +91,8 @@ module.exports = Self => { [file.checksum, file.name], options); } + await tx.commit(); + // Clean files try { console.debug(`Cleaning files...`); @@ -101,7 +103,6 @@ module.exports = Self => { } } catch (error) { await tx.rollback(); - console.log(error); throw error; }