hotFix(closeAll): continue loop #2290

Merged
alexm merged 1 commits from hotFix_closeAll_continueLoop into master 2024-04-11 11:57:10 +00:00
1 changed files with 4 additions and 1 deletions

View File

@ -152,7 +152,10 @@ module.exports = async function(ctx, Self, tickets, reqArgs = {}) {
VALUES ('invoicingTicketError', ?)
`, [ticket.id + ' - ' + error]);
// Domain not found
if (error.responseCode == 450) return invalidEmail(ticket);
if (error.responseCode == 450) {
await invalidEmail(ticket);
continue;
}
// Save tickets on a list of failed ids
failedtickets.push({