2
0

🐛 (stripe) Fix plan update and management

This commit is contained in:
Baptiste Arnaud
2022-09-20 19:15:47 +02:00
committed by Baptiste Arnaud
parent f83e0efea2
commit 6384a3adae
12 changed files with 99 additions and 105 deletions

View File

@ -1,18 +1,23 @@
import { PrismaClient } from 'db'
import path from 'path'
import fs from 'fs'
import { injectFakeResults } from 'utils'
require('dotenv').config({
path: path.join(
__dirname,
process.env.NODE_ENV === 'production'
? '.env.production'
: process.env.NODE_ENV === 'staging'
? '.env.staging'
: '.env.local'
process.env.NODE_ENV === 'staging' ? '.env.staging' : '.env.local'
),
})
const main = async () => {}
const prisma = new PrismaClient()
const main = async () => {
await injectFakeResults(prisma)({
count: 150,
typebotId: 'cl89sq4vb030109laivd9ck97',
isChronological: false,
idPrefix: 'batch2',
})
}
main().then()