2022-06-20 11:16:36 +02:00
|
|
|
import { PrismaClient } from 'db'
|
2022-02-25 09:45:31 +01:00
|
|
|
import path from 'path'
|
2022-09-20 19:15:47 +02:00
|
|
|
import { injectFakeResults } from 'utils'
|
2022-02-25 09:45:31 +01:00
|
|
|
|
|
|
|
require('dotenv').config({
|
|
|
|
path: path.join(
|
|
|
|
__dirname,
|
2022-09-20 19:15:47 +02:00
|
|
|
process.env.NODE_ENV === 'staging' ? '.env.staging' : '.env.local'
|
2022-02-25 09:45:31 +01:00
|
|
|
),
|
|
|
|
})
|
|
|
|
|
2022-09-20 19:15:47 +02:00
|
|
|
const prisma = new PrismaClient()
|
|
|
|
|
|
|
|
const main = async () => {
|
|
|
|
await injectFakeResults(prisma)({
|
2022-09-25 20:16:08 +02:00
|
|
|
count: 200,
|
|
|
|
typebotId: 'cl8hl08xt009909l6pwqenf63',
|
2022-09-20 19:15:47 +02:00
|
|
|
isChronological: false,
|
2022-09-25 20:16:08 +02:00
|
|
|
fakeStorage: 3 * 1024 * 1024 * 1024,
|
2022-09-20 19:15:47 +02:00
|
|
|
})
|
|
|
|
}
|
2022-02-25 09:45:31 +01:00
|
|
|
|
|
|
|
main().then()
|