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