diff --git a/modules/client/back/methods/client/consumptionSendQueued.js b/modules/client/back/methods/client/consumptionSendQueued.js index 849e2b304..07b5fb57b 100644 --- a/modules/client/back/methods/client/consumptionSendQueued.js +++ b/modules/client/back/methods/client/consumptionSendQueued.js @@ -56,8 +56,10 @@ module.exports = Self => { const email = new Email('campaign-metrics', args); await email.send(); } catch (error) { - if (error.code !== 'EENVELOPE') - throw error; + if (error.code === 'EENVELOPE') + continue; + + throw error; } }