From a8065ab1a4506419d096ef24b6451efb28728035 Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 27 Feb 2024 09:43:53 +0100 Subject: [PATCH] fix: refs #6184 hasFile false in saveSign and saveCmr --- modules/ticket/back/methods/ticket/saveCmr.js | 2 +- modules/ticket/back/methods/ticket/saveSign.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ticket/back/methods/ticket/saveCmr.js b/modules/ticket/back/methods/ticket/saveCmr.js index 691af796c..f8d0af8ef 100644 --- a/modules/ticket/back/methods/ticket/saveCmr.js +++ b/modules/ticket/back/methods/ticket/saveCmr.js @@ -63,7 +63,7 @@ module.exports = Self => { warehouseFk: ticket.warehouseFk, reference: ticket.id, contentType: 'application/pdf', - hasFile: true + hasFile: false }; const dms = await models.Dms.createFromStream(data, 'pdf', pdfStream, myOptions); diff --git a/modules/ticket/back/methods/ticket/saveSign.js b/modules/ticket/back/methods/ticket/saveSign.js index aa970237f..490b05320 100644 --- a/modules/ticket/back/methods/ticket/saveSign.js +++ b/modules/ticket/back/methods/ticket/saveSign.js @@ -80,7 +80,7 @@ module.exports = Self => { dmsTypeId: dmsTypeTicket.id, reference: ticket.id, description: `Firma del cliente - Ruta ${ticket.route().id}`, - hasFile: true + hasFile: false }; dms = await models.Dms.uploadFile(ctxUploadFile, myOptions); // Si se ha subido ya la firma, no se vuelve a subir, ya que si no