From e870c26c70b9db1aefb2e846f7ca7cb59b851cff 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;