2
0
Files
bot/packages/scripts/index.ts

24 lines
474 B
TypeScript
Raw Normal View History

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