This commit is contained in:
Rizky 2024-01-29 09:58:58 +07:00
parent bc9d3e3d3f
commit 2345b69ac3
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import { g } from "./global";
export const preparePrisma = async () => {
if (await existsAsync(dir("app/db/.env"))) {
await $({ cwd: dir(`app/db`) })`bun prisma db pull`;
await $({ cwd: dir(`app/db`) })`bun prisma generate`;
try {
const { PrismaClient } = await import("../../app/db/db");