Skip to content

Commit

Permalink
feature: allow filter to ignore debit notes (for integration testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jul 24, 2024
1 parent 620b355 commit 64284a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/payment/agreement_payment_process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export class AgreementPaymentProcess {
} catch (error) {
if (error == "ignore debit note") {
// This is a special case when the filter wants to ignore the debit note
this.logger.debug(`DebitNote ignored`, {
debitNoteId: debitNote.id,
agreementId: debitNote.agreementId,
});
return false;
}
throw new GolemUserError("An error occurred in the debit note filter", error);
Expand Down

0 comments on commit 64284a7

Please sign in to comment.