mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 07:26:48 +02:00
🔥 Remove legacy billing system (paddle) (#1583)
This commit is contained in:
parent
5f49502922
commit
01758f81ae
8 changed files with 12 additions and 378 deletions
|
@ -142,27 +142,8 @@ async function main() {
|
|||
},
|
||||
});
|
||||
|
||||
const proUserLegacy = await prisma.user.create({
|
||||
data: {
|
||||
name: "Pro User Legacy",
|
||||
email: "dev+prolegacy@rallly.co",
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.userPaymentData.create({
|
||||
data: {
|
||||
userId: proUserLegacy.id,
|
||||
status: "active",
|
||||
endDate: dayjs().add(1, "year").toDate(),
|
||||
planId: "pro_123",
|
||||
updateUrl: "https://example.com/update",
|
||||
cancelUrl: "https://example.com/cancel",
|
||||
subscriptionId: "sub_123",
|
||||
},
|
||||
});
|
||||
|
||||
await Promise.all(
|
||||
[freeUser, proUser, proUserLegacy].map(async (user) => {
|
||||
[freeUser, proUser].map(async (user) => {
|
||||
Array.from({ length: 20 }).forEach(async () => {
|
||||
await createPollForUser(user.id);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue