refs #6184 saveCmr #1788
|
@ -88,7 +88,7 @@ module.exports = Self => {
|
||||||
warehouseFk: args.warehouseId,
|
warehouseFk: args.warehouseId,
|
||||||
reference: args.reference,
|
reference: args.reference,
|
||||||
description: args.description,
|
description: args.description,
|
||||||
contentType: file.type,
|
contentType: args.contentType,
|
||||||
hasFile: args.hasFile
|
hasFile: args.hasFile
|
||||||
};
|
};
|
||||||
const extension = await models.DmsContainer.getFileExtension(uploadedFile.name);
|
const extension = await models.DmsContainer.getFileExtension(uploadedFile.name);
|
||||||
|
|
|
@ -83,6 +83,7 @@ module.exports = Self => {
|
||||||
dmsTypeId: dmsTypeTicket.id,
|
dmsTypeId: dmsTypeTicket.id,
|
||||||
reference: ticket.id,
|
reference: ticket.id,
|
||||||
description: `Firma del cliente - Ruta ${ticket.route().id}`,
|
description: `Firma del cliente - Ruta ${ticket.route().id}`,
|
||||||
|
contentType: 'image/png',
|
||||||
hasFile: true
|
hasFile: true
|
||||||
};
|
};
|
||||||
dms = await models.Dms.uploadFile(ctxUploadFile, myOptions);
|
dms = await models.Dms.uploadFile(ctxUploadFile, myOptions);
|
||||||
|
|
Loading…
Reference in New Issue