Remove checkoutSessionId from project (#282)

* remove checkoutSessionId from project

* fix app_diff

* Update schema.prisma.diff

---------

Co-authored-by: vincanger <70215737+vincanger@users.noreply.github.com>
This commit is contained in:
Shemang Joshua
2024-10-14 13:10:22 +01:00
committed by GitHub
parent 515f77800c
commit e641beaff7
5 changed files with 3 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
--- template/app/src/server/scripts/dbSeeds.ts
+++ opensaas-sh/app/src/server/scripts/dbSeeds.ts
@@ -38,10 +38,12 @@
@@ -38,9 +38,11 @@
sendNewsletter: false,
credits,
subscriptionStatus,
@@ -8,7 +8,6 @@
- paymentProcessorUserId: hasUserPaidOnStripe ? `cus_test_${faker.string.uuid()}` : null,
+ stripeId: hasUserPaidOnStripe ? `cus_test_${faker.string.uuid()}` : null,
datePaid: hasUserPaidOnStripe ? faker.date.between({ from: createdAt, to: lastActiveTimestamp }) : null,
checkoutSessionId: hasUserPaidOnStripe ? `cs_test_${faker.string.uuid()}` : null,
subscriptionPlan: subscriptionStatus ? faker.helpers.arrayElement(getSubscriptionPaymentPlanIds()) : null,
+ // For the demo app, we want to default isMockUser to true so that our admin dash only shows mock users
+ // and not real users signing up to test the app