Skip to content

Commit

Permalink
Merge pull request #45 from beabee-communityrm/fix/complete-pm-update…
Browse files Browse the repository at this point in the history
…-flows

fix: complete all payment flows
  • Loading branch information
wpf500 authored Aug 8, 2024
2 parents bc990dc + 035c6ad commit 0119571
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/src/services/PaymentFlowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ class PaymentFlowService implements PaymentFlowProvider {
joinFlow: JoinFlow
): Promise<CompletedPaymentFlow | undefined> {
log.info("Completing join flow " + joinFlow.id);
const paymentFlow =
joinFlow.joinForm.monthlyAmount > 0
? await this.completePaymentFlow(joinFlow)
: undefined;
const paymentFlow = joinFlow.paymentFlowId
? await this.completePaymentFlow(joinFlow)
: undefined;
await getRepository(JoinFlow).delete(joinFlow.id);
return paymentFlow;
}
Expand Down

0 comments on commit 0119571

Please sign in to comment.