fix: #6184 Minor changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-01-30 07:42:58 +01:00
parent 65268487b9
commit 1fe6818a0f
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ module.exports = Self => {
if (ticketDms?.dms()?.id) return true;
}
async function createGestDoc(id) {
async function createGestDoc() {
const ctxUploadFile = Object.assign({}, ctx);
ctxUploadFile.args = {
warehouseId: ticket.warehouseFk,
@ -138,7 +138,7 @@ module.exports = Self => {
if (location) await setLocation(ticketId);
if (!await hasSignDms(ticketId) && !gestDocCreated)
await createGestDoc(ticketId);
await models.TicketDms.create({ticketFk: id, dmsFk: dms[0].id}, myOptions);
await models.TicketDms.create({ticketFk: ticketId, dmsFk: dms[0].id}, myOptions);
await ticket.updateAttribute('isSigned', true, myOptions);
const deliveryState = await models.State.findOne({