dev #1731

Merged
jgallego merged 105 commits from dev into test 2023-08-31 09:13:29 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ca28d2d78f - Show all commits

View File

@ -40,7 +40,7 @@ module.exports = Self => {
{ {
fields: ['id'], fields: ['id'],
where: {code: expedition.stateCode} where: {code: expedition.stateCode}
} }, myOptions
); );
if (!expeditionStateType) if (!expeditionStateType)
throw new UserError(`Invalid state code: ${expedition.stateCode}.`); throw new UserError(`Invalid state code: ${expedition.stateCode}.`);
@ -51,7 +51,7 @@ module.exports = Self => {
await models.ExpeditionState.create({ await models.ExpeditionState.create({
expeditionFk: expedition.expeditionFk, expeditionFk: expedition.expeditionFk,
typeFk, typeFk,
}); }, myOptions);
} }
if (tx) await tx.commit(); if (tx) await tx.commit();