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

23 lines
472 B
TypeScript
Raw Normal View History

import { PrismaClient } from 'db'
2022-02-25 09:45:31 +01:00
import path from 'path'
import { setCustomPlan } from './setCustomPlan'
2022-02-25 09:45:31 +01:00
require('dotenv').config({
path: path.join(
__dirname,
process.env.NODE_ENV === 'production'
? '.env.production'
: process.env.NODE_ENV === 'staging'
? '.env.staging'
: '.env.local'
2022-02-25 09:45:31 +01:00
),
})
const prisma = new PrismaClient({ log: ['query', 'info', 'warn', 'error'] })
const main = async () => {
setCustomPlan()
}
2022-02-25 09:45:31 +01:00
main().then()