From a5f69915115111926033114fa837be2fac7700ee Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 18 Apr 2023 10:18:44 +0200 Subject: [PATCH] continue --- modules/client/back/methods/client/consumptionSendQueued.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } }