From 5e40b384ffccf546021c550aa716169173155524 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 16 Jul 2019 13:55:24 +0200 Subject: [PATCH] fixed updateFile transaction --- back/methods/dms/updateFile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/methods/dms/updateFile.js b/back/methods/dms/updateFile.js index ff3c0806f..32aae891b 100644 --- a/back/methods/dms/updateFile.js +++ b/back/methods/dms/updateFile.js @@ -79,10 +79,10 @@ module.exports = Self => { }, myOptions); if (hasAttachedFile) - updatedDms = await uploadNewFile(ctx, dms, myOptions); + await uploadNewFile(ctx, dms, myOptions); if (tx) await tx.commit(); - return updatedDms; + return dms; } catch (e) { if (tx) await tx.rollback(); throw e;