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