🐛 (stripe) Fix plan update and management
This commit is contained in:
committed by
Baptiste Arnaud
parent
f83e0efea2
commit
6384a3adae
@ -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()
|
||||
|
Reference in New Issue
Block a user