This commit is contained in:
parent
0ea69427ec
commit
f83dd37a28
|
@ -46,10 +46,8 @@ module.exports = Self => {
|
|||
const {code} = expedition.agencyMode();
|
||||
let isDeleted = true;
|
||||
|
||||
if (code?.toLowerCase()?.includes('mrw')) {
|
||||
const result = await models.MrwConfig.cancelShipment(expeditionId);
|
||||
isDeleted = result;
|
||||
}
|
||||
if (code?.toLowerCase()?.includes('mrw'))
|
||||
isDeleted = await models.MrwConfig.cancelShipment(expeditionId);
|
||||
|
||||
if (code?.toLowerCase()?.substring(0, 10) == 'viaexpress') {
|
||||
const result = await models.ViaexpressConfig.deleteExpedition(expeditionId);
|
||||
|
|
Loading…
Reference in New Issue