From 7dc894fc290b11e11cf6e37792498a04d6d47b84 Mon Sep 17 00:00:00 2001 From: emmdim Date: Fri, 22 Nov 2024 12:36:28 +0100 Subject: [PATCH] Minor fix with plan IDs --- assets/plans.json | 6 +++--- db/organizations_test.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/plans.json b/assets/plans.json index cb6849b..58b16a7 100644 --- a/assets/plans.json +++ b/assets/plans.json @@ -1,6 +1,6 @@ [ { - "ID": 1, + "ID": 0, "Name": "Essential Annual Plan", "StripeID": "price_1QBEmzDW6VLep8WGpkwjynXV", "StartingPrice": 9900, @@ -22,7 +22,7 @@ } }, { - "ID": 2, + "ID": 1, "Name": "Premium Annual Plan", "StripeID": "price_1Q8iyUDW6VLep8WGWXdjC78r", "StartingPrice": 30000, @@ -44,7 +44,7 @@ } }, { - "ID": 3, + "ID": 2, "Name": "Free Plan", "StripeID": "price_1QMtoJDW6VLep8WGC2vsJ2CV", "StartingPrice": 0, diff --git a/db/organizations_test.go b/db/organizations_test.go index 29d7a11..6d38bf2 100644 --- a/db/organizations_test.go +++ b/db/organizations_test.go @@ -200,6 +200,7 @@ func TestAddOrganizationPlan(t *testing.T) { active := true stripeID := "stripeID" orgSubscription := &OrganizationSubscription{ + PlanID: 100, StartDate: startDate, EndDate: endDate, Active: true,