2
0
Files
bot/packages/scripts/index.ts
2022-09-27 08:30:42 +02:00

24 lines
474 B
TypeScript

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