fix: refs #6403 remove line
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Pablo Natek 2024-07-17 08:23:33 +02:00
parent 0ea69427ec
commit f83dd37a28
1 changed files with 2 additions and 4 deletions

View File

@ -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);