refs #6132 fix: saveSign without route
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Sergio De la torre 2023-08-31 13:50:31 +02:00
parent e7cd052199
commit 7d8828e604
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ module.exports = Self => {
}, myOptions);
const dmsType = await models.DmsType.findOne({where: {code: 'Ticket'}, fields: ['id']}, myOptions);
const ctxUploadFile = Object.assign({}, ctx);
if (ticket.route() === null)
throw new UserError('Ticket without route');
ctxUploadFile.args = {
warehouseId: ticket.warehouseFk,
companyId: ticket.companyFk,