fix: refs #6184 Upload sign
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Sergio De la torre 2024-01-30 08:11:33 +01:00
parent 1fe6818a0f
commit 0f3ffcfa61
2 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,7 @@ module.exports = Self => {
warehouseFk: args.warehouseId,
reference: args.reference,
description: args.description,
contentType: file.type,
contentType: args.contentType,
hasFile: args.hasFile
};
const extension = await models.DmsContainer.getFileExtension(uploadedFile.name);

View File

@ -83,6 +83,7 @@ module.exports = Self => {
dmsTypeId: dmsTypeTicket.id,
reference: ticket.id,
description: `Firma del cliente - Ruta ${ticket.route().id}`,
contentType: 'image/png',
hasFile: true
};
dms = await models.Dms.uploadFile(ctxUploadFile, myOptions);