Skip to content

Commit

Permalink
fix date check for sub creation (#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 authored Oct 1, 2024
1 parent c5eee0c commit aa83b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/billing/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (o *Orb) CreateSubscription(ctx context.Context, customerID string, plan *P
}

func (o *Orb) CreateSubscriptionInFuture(ctx context.Context, customerID string, plan *Plan, startDate time.Time) (*Subscription, error) {
if startDate.After(time.Now()) {
if startDate.Before(time.Now()) {
return nil, errors.New("start date must be in the future")
}

Expand Down

0 comments on commit aa83b03

Please sign in to comment.