Skip to content

Commit

Permalink
Minor fix with plan IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
emmdim committed Nov 22, 2024
1 parent 9db7091 commit 226c2f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions db/organizations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func TestAddOrganizationPlan(t *testing.T) {
active := true
stripeID := "stripeID"
orgSubscription := &OrganizationSubscription{
PlanID: 100,
StartDate: startDate,
EndDate: endDate,
Active: true,
Expand Down
2 changes: 1 addition & 1 deletion stripe/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (s *StripeClient) GetPlans() ([]*db.Plan, error) {
})
}
plans = append(plans, &db.Plan{
ID: uint64(i),
ID: uint64(i + 1),
Name: price.Nickname,
StartingPrice: startingPrice,
StripeID: price.ID,
Expand Down

0 comments on commit 226c2f6

Please sign in to comment.