This commit is contained in:
Rizky 2024-06-21 18:07:07 +07:00
parent 2d6d3fd7a9
commit ee779a1e56
2 changed files with 0 additions and 2 deletions

View File

@ -48,7 +48,6 @@ export const _ = {
case "db-sync": { case "db-sync": {
const res = await fetch(action.url); const res = await fetch(action.url);
const text = await res.text(); const text = await res.text();
console.log(text);
if (text) { if (text) {
await Bun.write(dir("app/db/prisma/schema.prisma"), text); await Bun.write(dir("app/db/prisma/schema.prisma"), text);
} }

View File

@ -7,7 +7,6 @@ export const preparePrisma = async () => {
if ((await existsAsync(dir("app/db/.env"))) && !g.db) { if ((await existsAsync(dir("app/db/.env"))) && !g.db) {
try { try {
if (g.mode !== "dev") { if (g.mode !== "dev") {
await $({ cwd: dir(`app/db`) })`bun prisma db pull --force`;
await $({ cwd: dir(`app/db`) })`bun prisma generate`; await $({ cwd: dir(`app/db`) })`bun prisma generate`;
} }