Skip to content

Commit

Permalink
fix: do not set reason as cancel when removing phase (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
anujk14 authored Jul 30, 2024
1 parent 132ecc5 commit 6f71c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion billing/subscription/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func (s *Service) CancelUpcomingPhase(ctx context.Context, sub Subscription) err
return fmt.Errorf("failed to update subscription schedule at billing provider: %w", err)
}

sub.Phase.Reason = SubscriptionCancel.String()
sub.Phase.Reason = ""
sub.Phase.EffectiveAt = time.Time{}
sub.Phase.PlanID = ""
_, err = s.repository.UpdateByID(ctx, sub)
Expand Down

0 comments on commit 6f71c43

Please sign in to comment.