debug(closure): add log #2243

Merged
alexm merged 1 commits from hotFix_closure_logErrors into master 2024-04-03 13:32:17 +00:00
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ module.exports = async function(ctx, Self, tickets, reqArgs = {}) {
);
}
} catch (error) {
await Self.rawSql(`
INSERT INTO util.debug (variable, value)
VALUES ('invoicingTicketError', ?)
`, [ticket.id + ' - ' + error]);
// Domain not found
if (error.responseCode == 450) return invalidEmail(ticket);