Merge pull request 'debug(closure): add log' (!2243) from hotFix_closure_logErrors into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2243
Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
Alex Moreno 2024-04-03 13:32:16 +00:00
commit 927f2e9ebf
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);