mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-29 04:56:43 +01:00
create updated app_diff (#207)
* create updated app_diff * fix requested changes
This commit is contained in:
9
opensaas-sh/app_diff/src/server/scripts/dbSeeds.ts.diff
Normal file
9
opensaas-sh/app_diff/src/server/scripts/dbSeeds.ts.diff
Normal file
@@ -0,0 +1,9 @@
|
||||
--- template/app/src/server/scripts/dbSeeds.ts
|
||||
+++ opensaas-sh/app/src/server/scripts/dbSeeds.ts
|
||||
@@ -43,5 +43,6 @@
|
||||
datePaid: hasUserPaidOnStripe ? faker.date.between({ from: createdAt, to: lastActiveTimestamp }) : null,
|
||||
checkoutSessionId: hasUserPaidOnStripe ? `cs_test_${faker.string.uuid()}` : null,
|
||||
subscriptionTier: subscriptionStatus ? faker.helpers.arrayElement([TierIds.HOBBY, TierIds.PRO]) : null,
|
||||
+ isMockUser: true,
|
||||
};
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
--- template/app/src/server/scripts/usersSeed.ts
|
||||
+++ opensaas-sh/app/src/server/scripts/usersSeed.ts
|
||||
@@ -26,6 +26,7 @@
|
||||
credits: faker.number.int({ min: 0, max: 3 }),
|
||||
checkoutSessionId: null,
|
||||
subscriptionTier: faker.helpers.arrayElement([TierIds.HOBBY, TierIds.PRO]),
|
||||
+ isMockUser: true,
|
||||
};
|
||||
return user;
|
||||
}
|
||||
Reference in New Issue
Block a user